function bg01_css_Create(){
var Rule;
var obj=document.getElementById("bg01_basho");
var idx=obj.selectedIndex;
select01 = obj[idx].text;
if(select01=="ヘッダー"){ Rule = ".skinHeaderArea{";}
if(select01=="全体"){ Rule = "body{";}
if(select01=="メッセージボード"){ Rule = ".skinMessageBoard{";}
if(select01=="記事タイトル"){ Rule = ".skinArticleHeader{";}
if(select01=="記事"){ Rule = ".skinArticleBody{";}
if(select01=="フレーム"){ Rule = ".skinFrame2{";}
var select01_comment = "/* --------------------------------------------- */\n";
select01_comment += "/* ■ "+ select01 + "に背景画像を設定 ■ */\n";
select01_comment += "/* --------------------------------------------- */\n";
document.bg01_form2.bg01_Result.value = select01_comment;
document.bg01_form2.bg01_Result.value += Rule + "\n";
document.bg01_form2.bg01_Result.value += "background-image:url(" + document.bg01_form1.bg01_in_url.value + ");\n";
for(i = 0; i < document.bg01_form1.bg01__repeat.length; i++){
	if(document.bg01_form1.bg01__repeat[i].checked) { 
document.bg01_form2.bg01_Result.value += "background-repeat:" + document.bg01_form1.bg01__repeat[i].value + ";\n";
}}
for(i = 0; i < document.bg01_form1.bg01__position_x.length; i++){
	if(document.bg01_form1.bg01__position_x[i].checked) { 
document.bg01_form2.bg01_Result.value += "background-position:" + document.bg01_form1.bg01__position_x[i].value + " ";
}}
for(i = 0; i < document.bg01_form1.bg01__position_y.length; i++){
	if(document.bg01_form1.bg01__position_y[i].checked) { 
document.bg01_form2.bg01_Result.value +=  document.bg01_form1.bg01__position_y[i].value + ";\n";
}}
if((Rule != ".skinHeaderArea{") && (Rule != ".skinArticleHeader{")){
for(i = 0; i < document.bg01_form1.bg01__scroll.length; i++){
	if(document.bg01_form1.bg01__scroll[i].checked) { 
document.bg01_form2.bg01_Result.value += "background-attachment:" + document.bg01_form1.bg01__scroll[i].value + ";\n";
}}}
document.bg01_form2.bg01_Result.value += "}\n";
}

function comment_img_css_Create(){
var img_data_width   = 0;
var img_data_height  = 0;
document.comment_img_form2.comment_img_Result.value  = "ここに結果が表示されます。";
if(document.comment_img_form1.comment_img_img_url.value==""){alert("画像のＵＲＬを入れて下さい");return false;}
var URLPos1 = document.comment_img_form1.comment_img_img_url.value.indexOf("http://stat.ameba.jp/user_images/");
var URLPos2 = document.comment_img_form1.comment_img_img_url.value.indexOf("http://stat.blogskin.ameba.jp/blogskin_images/");
var URLPos3 = document.comment_img_form1.comment_img_img_url.value.indexOf("http://stat001.ameba.jp/user_images/");
if((URLPos1 != 0) && (URLPos2 != 0) && (URLPos3 != 0)){alert("画像のＵＲＬはアメーバ内のＵＲＬを入れて下さい");return false;}
var img = new Image();
img.src = document.comment_img_form1.comment_img_img_url.value;
var width=img.width;var height=img.height;
document.comment_img_form1.comment_img_width.value   = img.width;
document.comment_img_form1.comment_img_height.value  = img.height;
img_data_width   = img.width;
img_data_height  = img.height;
$("img#tmp001").attr("src",document.comment_img_form1.comment_img_img_url.value);
if((img_data_width == 0) || (img_data_height == 0)){
document.comment_img_form2.comment_img_Result.value  = "ここに結果が表示されます。";
alert("画像が見つかりません");return false;}
document.comment_img_form2.comment_img_Result.value  = "/* ----------------------------------------------------- */\n";
document.comment_img_form2.comment_img_Result.value += "/* コメント画像の設定 　　　　　　　　　　　　　　　　　 */\n";
document.comment_img_form2.comment_img_Result.value += "/* ----------------------------------------------------- */\n";
document.comment_img_form2.comment_img_Result.value += ".commentBtn{\n";
document.comment_img_form2.comment_img_Result.value += "width:" + img.width + "px;\n";
document.comment_img_form2.comment_img_Result.value += "height:" + img.height + "px;\n";
document.comment_img_form2.comment_img_Result.value += "text-indent:-9999px !important;\n";
document.comment_img_form2.comment_img_Result.value += "background-image:url(" + document.comment_img_form1.comment_img_img_url.value + ");\n";
document.comment_img_form2.comment_img_Result.value += "background-repeat:no-repeat;\n";
document.comment_img_form2.comment_img_Result.value += "background-color:transparent;\n";
document.comment_img_form2.comment_img_Result.value += "border:none;\n";
document.comment_img_form2.comment_img_Result.value += "overflow:hidden !important;\n";
document.comment_img_form2.comment_img_Result.value += "outline:none !important;\n";
document.comment_img_form2.comment_img_Result.value += "}\n";
}





function CommentOpenX1(comments_ID1, ameba_ID, entryNumber){
window.open('http://comment.ameba.jp/public/comment/displaycommentform.do?eid='+entryNumber+'&bnm='+ameba_ID+'&cid='+comments_ID1, 'commentform', 'scrollbars=yes,resizable=yes,width=430,height=675','return false');
}
window.onload = function commentSearch(){
var x;
var hrefData;
var amebloPos;
var amebloPos2;
var amebaId_len;
var amebaId;
var startPos;
var entryURL;
var entryURLlen;
var httpPos;
aCommentTbl = new Array();
buttonImage = new Array();
buttonImage[0]='http://stat001.ameba.jp/user_images/20110728/05/new-blue-777/be/62/g/o0150004011378235409.gif';
buttonImage[1]='http://stat001.ameba.jp/user_images/20110821/02/new-blue-777/f1/3f/g/o0150004011431266440.gif';
var aNumber = 0;
var aNumber2 = 0;
var commentSearchText1 = '<br><div id="commadOpenX"><a href="javascript:CommentOpenX1(\'\',\'';
var commentSearchText2 = '\',\'';
var commentSearchText3 = '\');"><img src="'
var commentSearchText4 = '"></a></div>';
var commentModule = $(".skinArticleFooter");
if(commentModule==null){
var aTagsAll = document.getElementsByTagName('a');
for(i = 0; i < aTagsAll.length; i++){
aTagsElm = document.getElementsByTagName('a')[i];
if(aTagsElm.className=='comment'){
hrefData = aTagsElm.href;
amebloPos2 = hrefData.indexOf("http://secret.ameba.jp/");
amebloPos = hrefData.indexOf("http://ameblo.jp/");
if((amebloPos!=0) && (amebloPos2!=0)){alert("アメブロ記事URLが取得できません。http://ameblo.jp/ 又は http://secret.ameba.jp/");return true;}
if(amebloPos==0){
httpPos = 17;
}else{
httpPos = 23;
}
amebaId_len = hrefData.indexOf("/",httpPos);
amebaId = hrefData.substring(amebaId_len,httpPos);
startPos = amebaId_len + 1;
entryURLlen = hrefData.indexOf(".html",startPos);
entryURL = hrefData.substring(entryURLlen,startPos);
entryNumber = entryURL.substring(entryURL.indexOf("-")+1,entryURL.length);
aCommentTbl[aNumber] = entryNumber;
++aNumber;
}
}
var divTagsAll = document.getElementsByTagName('div');
for(i = 0; i < divTagsAll.length; i++){
divTagsElm = document.getElementsByTagName('div')[i];
if(divTagsElm.className=='skinArticleFooter'){
x=Math.floor(Math.random()*buttonImage.length);
divTagsElm.innerHTML += (commentSearchText1 + amebaId + commentSearchText2 + aCommentTbl[aNumber2] + commentSearchText3 + buttonImage[x] + commentSearchText4);
++aNumber2;
}
}
}
}




$(function(){
$("#flashContentx").append('<EMBED src="http://stat.ameba.jp/peta/user/swf/event_091225/24/peta_button1_christmas.swf" loop=true quality=high bgcolor=#000000 WIDTH="600" HEIGHT="250" NAME="clock05" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
})
$(function(){
$("#flashContenty").append('<EMBED src="http://stat.ameba.jp/peta/user/swf/event_091225/24/peta_button2.swf" loop=true quality=high bgcolor=#000000 WIDTH="600" HEIGHT="250" NAME="clock05" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
})

$(function(){
$("#flash2000x").append('<EMBED src="http://stat.ameba.jp/peta/user/swf/thx2000/peta_button1_thx2000.swf" loop=true quality=high bgcolor=#000000 WIDTH="600" HEIGHT="250" NAME="clock05" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
})
$(function(){
$("#flash2000y").append('<EMBED src="http://stat.ameba.jp/peta/user/swf/thx2000/peta_button2.swf" loop=true quality=high bgcolor=#000000 WIDTH="600" HEIGHT="250" NAME="clock05" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
})

$(function(){
art_pass="abc";
$(".pass_Article01").click(function(){
passw=window.prompt("記事のパスワードを入れて下さい","");
if(passw==art_pass){
$(this).next().fadeIn(1000);
$(this).css("display","none");
}else{
alert("パスワードが違います");
}
});});


function textcenterchg(){//♪テキスト中央寄せ
var obj=document.getElementById("text_center_basho");
var idx=obj.selectedIndex;
if(obj[idx].value != "none"){
document.text_center_form2.text_center2_Result1.value  = obj[idx].value + "\n";
}else{
document.text_center_form2.text_center2_Result1.value = "ここに結果が表示されます。";}
}

function amebainkchg(){//♪アメーバＵＲＬの自動作成
var Ameba_ID  = document.ameba_add_form.ameba_add_amebaid.value;
if(Ameba_ID=="") {alert("アメーバＩＤを入れて下さい");return false;}
var obj=document.getElementById("ameba_add_menu01_link");
var idx=obj.selectedIndex;
if(obj[idx].value != "none"){
	if(obj[idx].text == "記事一覧"){
		document.ameba_add_form2.ameba_add2_Result1.value  = obj[idx].value + Ameba_ID + "/" + "entrylist.html";
	}else{
		if(obj[idx].text == "アメンバー限定記事一覧"){
				document.ameba_add_form2.ameba_add2_Result1.value  = obj[idx].value + Ameba_ID + "/" + "amemberentrylist.html";
		}else{
				if((obj[idx].text == "ルーム" || obj[idx].text == "ホーム" || obj[idx].text == "なう")){
					document.ameba_add_form2.ameba_add2_Result1.value  = obj[idx].value + Ameba_ID + "/";
				}else{
					document.ameba_add_form2.ameba_add2_Result1.value  = obj[idx].value + Ameba_ID;
				}
		}
	}
	if(obj[idx].text == "ペタ（ブログ）"){
				document.ameba_add_form2.ameba_add2_Result1.value  = obj[idx].value + Ameba_ID  + "&service=blog";
	}
	if(obj[idx].text == "ペタ（ルーム）"){
				document.ameba_add_form2.ameba_add2_Result1.value  = obj[idx].value + Ameba_ID  + "&service=profile";
	}
}else{
document.ameba_add_form2.ameba_add2_Result1.value = "ここに結果が表示されます。";}
}


function scroll_set_css_Create(){//♪スクロールバーの設置　ＣＳＳ自動作成
var obj=document.getElementById("scroll_set_basho");
var idx=obj.selectedIndex;
var obj2=document.getElementById("scroll_set_height");
var idx2=obj2.selectedIndex;
scroll_set_midashi = obj[idx].text;
document.scroll_set_form2.scroll_set2_Result1.value  = "/* ♪ " + obj[idx].text + " スクロールバー ♪ */\n";
document.scroll_set_form2.scroll_set2_Result1.value += obj[idx].value + "{\n";
if(document.scroll_set_form.scroll_set_max_height[0].checked) {
document.scroll_set_form2.scroll_set2_Result1.value += "height:" +  obj2[idx2].value + ";\n";
}else{
document.scroll_set_form2.scroll_set2_Result1.value += "max-height:" +  obj2[idx2].value + ";\n";
}
document.scroll_set_form2.scroll_set2_Result1.value += "overflow:auto;\n";
document.scroll_set_form2.scroll_set2_Result1.value += "}\n";
}
function room_css_Create(){
var obj=document.getElementById("room_basho");
var idx=obj.selectedIndex;
document.room_form1.room_form_Result.value = obj[idx].value + "\n";
}
function menulinkchg2(chgname, chgelse){
var frm=document.menu2_sel_form;
var chgobj=document.getElementById(chgname);
var chgobjix=chgobj.selectedIndex;
var selectchg=chgobj[chgobjix].value;
if(selectchg=="else"){
 frm.elements[chgelse].disabled=false;
}else{
 frm.elements[chgelse].disabled=true;
}
}

function able4(){
var Idobj4=document.getElementById("border_weight");
var index004=Idobj4.selectedIndex;
select04x = Idobj4[index004].value;
var frm1=document.border_form1;
var obj_px=document.getElementById("border_weight");
var idx=obj_px.selectedIndex;
if(select04x=="else"){
	frm1.elements["border_else_weight"].value="";
	frm1.elements["border_else_weight"].disabled=false;
}else{
	frm1.elements["border_else_weight"].value=obj_px[idx].value.substring(0, 1);
	frm1.elements["border_else_weight"].disabled=true;
}
}
function able5(){
var Idobj5=document.getElementById("border_color");
var index005=Idobj5.selectedIndex;
select05x = Idobj5[index005].value;
var frm2=document.border_form1;
var obj_color=document.getElementById("border_color");
var idx=obj_color.selectedIndex;
if(select05x=="else"){
	frm2.elements["border_else_color"].value="";
	frm2.elements["border_else_color"].disabled=false;
}else{
	frm2.elements["border_else_color"].value=obj_color[idx].value;
	frm2.elements["border_else_color"].disabled=true;
}
}
function border_css_Create(){
var border_status_u="0";
var border_status_d="0";
var border_status_l="0";
var border_status_r="0";
var border_name="";
var frmA=document.border_form1;
if(frmA.elements["borer_u"].checked==true){
border_status_u="1";
}
if(frmA.elements["borer_d"].checked==true){
border_status_d="1";
}
if(frmA.elements["borer_l"].checked==true){
border_status_l="1";
}
if(frmA.elements["borer_r"].checked==true){
border_status_r="1";
}
var obj=document.getElementById("border_basho");
var idx=obj.selectedIndex;
var select01_text = obj[idx].text;
var border_none_sw="0";
if((border_status_u!="1")&&(border_status_d!="1")&&(border_status_l!="1")&&(border_status_r!="1")){
  border_none_sw="1";
  var select01_comment = "/* ♪ " + select01_text + "の枠を消す ♪ */\n";
}else{
  var select01_comment = "/* ♪ " + select01_text + "に枠を設定 ♪ */\n";
}
document.border_form2.border_Result.value = select01_comment;
document.border_form2.border_Result.value += obj[idx].value + "{\n";
var selector1=obj[idx].value;
if(border_none_sw=="1"){
  document.border_form2.border_Result.value += "border:none;\n}\n";
}else{
var obj_px=document.getElementById("border_weight");
var idx=obj_px.selectedIndex;
var select01_px = obj_px[idx].value;
if(select01_px=="else"){select01_px = document.border_form1.border_else_weight.value + "px";}
var obj_color=document.getElementById("border_color");
var idx=obj_color.selectedIndex;
var select01_color = obj_color[idx].value;
if(select01_color=="else"){select01_color = document.border_form1.border_else_color.value;}
var obj_style=document.getElementById("border_style");
var idx=obj_style.selectedIndex;
var select01_style = obj_style[idx].value;
$(border_css_sel).css("border", "none");
border_css_sel=selector1;
if(select01_style=="none"){document.border_form2.border_Result.value += "border:" + select01_style + ";\n}\n";
}else{
if((border_status_u=="1") && (border_status_d=="1") && (border_status_l=="1") && (border_status_r=="1")){
border_name="border";
document.border_form2.border_Result.value += border_name +":"+ select01_px + " " + select01_style + " " + select01_color + ";\n}\n";
$(selector1).css(border_name, select01_px + " " + select01_style + " " + select01_color);
}else{
if(border_status_u=="1"){
border_name="border-top";
document.border_form2.border_Result.value += border_name +":" + select01_px + " " + select01_style + " " + select01_color + ";\n";
$(selector1).css(border_name, select01_px + " " + select01_style + " " + select01_color);
}
if(border_status_d=="1"){
border_name="border-bottom";
document.border_form2.border_Result.value += border_name +":" + select01_px + " " + select01_style + " " + select01_color + ";\n";
$(selector1).css(border_name, select01_px + " " + select01_style + " " + select01_color);
}
if(border_status_l=="1"){
border_name="border-left";
document.border_form2.border_Result.value += border_name +":" + select01_px + " " + select01_style + " " + select01_color + ";\n";
$(selector1).css(border_name, select01_px + " " + select01_style + " " + select01_color);
}
if(border_status_r=="1"){
border_name="border-right";
document.border_form2.border_Result.value += border_name +":" + select01_px + " " + select01_style + " " + select01_color + ";\n";
$(selector1).css(border_name, select01_px + " " + select01_style + " " + select01_color);
}
document.border_form2.border_Result.value += "}\n";
}
}
}
}



function disp_css_Create(){//♪非表示にするＣＳＳ自動作成
var area_d="";
if(document.disp_form1.disp_area1[0].checked) {
area_d="エリアを削除する";
}else{
area_d="エリアを削除しない";
}
var obj=document.getElementById("disp_basho");
var idx=obj.selectedIndex;
var select01_text = obj[idx].text;
var select01_comment = "/* ♪ " + select01_text + "を非表示にします（"+area_d+"） ♪ */\n";
document.disp_form2.disp_Result.value = select01_comment;
document.disp_form2.disp_Result.value += obj[idx].value + "{\n";
if(document.disp_form1.disp_area1[0].checked) {
document.disp_form2.disp_Result.value += "display:none";
}else{
document.disp_form2.disp_Result.value += "visibility:hidden";
}
if((select01_text=="アメンバーになる背景画像★") || (select01_text=="フッター( | を消す★)")){
document.disp_form2.disp_Result.value += " !important;\n";
}else{
document.disp_form2.disp_Result.value += ";\n";
}
document.disp_form2.disp_Result.value += "}\n";
}





function menu1_css_Create(){//♪横メニューナビゲーション　ＨＴＭＬ・ＣＳＳ作成
if(document.menu1_yoko_form.menu1_top.value.match(/[^0-9]+/)){alert("数字で入力して下さい(上からの位置)");return false;}
if(document.menu1_yoko_form.menu1_left.value.match(/[^0-9]+/)){alert("数字で入力して下さい(左からの位置)");return false;}
var Ameba_ID = document.menu1_yoko_form.menu1_amebaid.value;
if(Ameba_ID==""){alert("アメーバＩＤを入れて下さい");}
document.menu1_yoko_form2.menu1_Result1.value   = '<div id="Topnavi"><ul id="Navilist">';
var obj_menu01_link=document.getElementById("menu1_menu01_link");
var obj_menu02_link=document.getElementById("menu1_menu02_link");
var obj_menu03_link=document.getElementById("menu1_menu03_link");
var obj_menu04_link=document.getElementById("menu1_menu04_link");
var obj_menu05_link=document.getElementById("menu1_menu05_link");
var obj_menu06_link=document.getElementById("menu1_menu06_link");
var obj_menu07_link=document.getElementById("menu1_menu07_link");
var obj_menu08_link=document.getElementById("menu1_menu08_link");
var idx_menu01_link      = obj_menu01_link.selectedIndex;
var idx_menu02_link      = obj_menu02_link.selectedIndex;
var idx_menu03_link      = obj_menu03_link.selectedIndex;
var idx_menu04_link      = obj_menu04_link.selectedIndex;
var idx_menu05_link      = obj_menu05_link.selectedIndex;
var idx_menu06_link      = obj_menu06_link.selectedIndex;
var idx_menu07_link      = obj_menu07_link.selectedIndex;
var idx_menu08_link      = obj_menu08_link.selectedIndex;
var select01_menu01_link = obj_menu01_link[idx_menu01_link].value;
var select01_menu02_link = obj_menu02_link[idx_menu02_link].value;
var select01_menu03_link = obj_menu03_link[idx_menu03_link].value;
var select01_menu04_link = obj_menu04_link[idx_menu04_link].value;
var select01_menu05_link = obj_menu05_link[idx_menu05_link].value;
var select01_menu06_link = obj_menu06_link[idx_menu06_link].value;
var select01_menu07_link = obj_menu07_link[idx_menu07_link].value;
var select01_menu08_link = obj_menu08_link[idx_menu08_link].value;




if(select01_menu01_link=="else"){select01_menu01_link = document.menu1_yoko_form.menu1_menu01_linkin.value;}else{select01_menu01_link = select01_menu01_link + Ameba_ID;}
if(select01_menu02_link=="else"){select01_menu02_link = document.menu1_yoko_form.menu1_menu02_linkin.value;}else{select01_menu02_link = select01_menu02_link + Ameba_ID;}
if(select01_menu03_link=="else"){select01_menu03_link = document.menu1_yoko_form.menu1_menu03_linkin.value;}else{select01_menu03_link = select01_menu03_link + Ameba_ID;}
if(select01_menu04_link=="else"){select01_menu04_link = document.menu1_yoko_form.menu1_menu04_linkin.value;}else{select01_menu04_link = select01_menu04_link + Ameba_ID;}
if(select01_menu05_link=="else"){select01_menu05_link = document.menu1_yoko_form.menu1_menu05_linkin.value;}else{select01_menu05_link = select01_menu05_link + Ameba_ID;}
if(select01_menu06_link=="else"){select01_menu06_link = document.menu1_yoko_form.menu1_menu06_linkin.value;}else{select01_menu06_link = select01_menu06_link + Ameba_ID;}
if(select01_menu07_link=="else"){select01_menu07_link = document.menu1_yoko_form.menu1_menu07_linkin.value;}else{select01_menu07_link = select01_menu07_link + Ameba_ID;}
if(select01_menu08_link=="else"){select01_menu08_link = document.menu1_yoko_form.menu1_menu08_linkin.value;}else{select01_menu08_link = select01_menu08_link + Ameba_ID;}


if((select01_menu01_link!="else") && (select01_menu01_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu01_link+="&service=blog"}
if((select01_menu02_link!="else") && (select01_menu02_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu02_link+="&service=blog"}
if((select01_menu03_link!="else") && (select01_menu03_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu03_link+="&service=blog"}
if((select01_menu04_link!="else") && (select01_menu04_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu04_link+="&service=blog"}
if((select01_menu05_link1="else") && (select01_menu05_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu05_link+="&service=blog"}
if((select01_menu06_link!="else") && (select01_menu06_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu06_link+="&service=blog"}
if((select01_menu07_link!="else") && (select01_menu07_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu07_link+="&service=blog"}
if((select01_menu08_link!="else") && (select01_menu08_link.substring(0,48)=="http://peta.ameba.jp/p/addPeta.do?targetAmebaId=")){
select01_menu08_link+="&service=blog"}


if(document.menu1_yoko_form.menu1_midashi01.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu01_link + '">' + document.menu1_yoko_form.menu1_midashi01.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi02.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu02_link + '">' + document.menu1_yoko_form.menu1_midashi02.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi03.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu03_link + '">' + document.menu1_yoko_form.menu1_midashi03.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi04.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu04_link + '">' + document.menu1_yoko_form.menu1_midashi04.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi05.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu05_link + '">' + document.menu1_yoko_form.menu1_midashi05.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi06.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu06_link + '">' + document.menu1_yoko_form.menu1_midashi06.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi08.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu07_link + '">' + document.menu1_yoko_form.menu1_midashi07.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi08.value != ""){document.menu1_yoko_form2.menu1_Result1.value  += '<li><a href="' + select01_menu08_link + '">' + document.menu1_yoko_form.menu1_midashi08.value + '</a></li>';}
document.menu1_yoko_form2.menu1_Result1.value  += '</ul></div>'
var obj_font_size=document.getElementById("menu1_font-size");
var idx_font_size        = obj_font_size.selectedIndex;
var select01_font_size   = obj_font_size[idx_font_size].value;
var obj_font_weight=document.getElementById("menu1_font-weight");
var idx_font_weight      = obj_font_weight.selectedIndex;
var select01_font_weight = obj_font_weight[idx_font_weight].value;
var obj_padding1=document.getElementById("menu1_padding1");
var obj_padding2=document.getElementById("menu1_padding2");
var idx_padding1        = obj_padding1.selectedIndex;
var idx_padding2        = obj_padding2.selectedIndex;
var select01_padding1   = obj_padding1[idx_padding1].value;
var select01_padding2   = obj_padding2[idx_padding2].value;
var obj_fixed=document.getElementById("menu1_fixed");
var idx_fixed           = obj_fixed.selectedIndex;
var select01_fixed      = obj_fixed[idx_fixed].value;
var obj_length=document.getElementById("menu1_length");
var idx_length          = obj_length.selectedIndex;
var select01_length     = obj_length[idx_length].value;
var obj_font1_color=document.getElementById("menu1_font1_color");
var obj_bg1_color=document.getElementById("menu1_bg1_color");
var obj_border1=document.getElementById("menu1_border1");
var obj_border1_color=document.getElementById("menu1_border1_color");
var obj_font2_color=document.getElementById("menu1_font2_color");
var obj_bg2_color=document.getElementById("menu1_bg2_color");
var obj_border2=document.getElementById("menu1_border2");
var obj_border2_color=document.getElementById("menu1_border2_color");
var idx_font1_color    = obj_font1_color.selectedIndex;
var idx_bg1_color      = obj_bg1_color.selectedIndex;
var idx_border1        = obj_border1.selectedIndex;
var idx_border1_color  = obj_border1_color.selectedIndex;
var idx_font2_color    = obj_font2_color.selectedIndex;
var idx_bg2_color      = obj_bg2_color.selectedIndex;
var idx_border2        = obj_border2.selectedIndex;
var idx_border2_color  = obj_border2_color.selectedIndex;
var select01_font1_color   = obj_font1_color[idx_font1_color].value;
var select01_bg1_color     = obj_bg1_color[idx_bg1_color].value;
var select01_border1       = obj_border1[idx_border1].value;
var select01_border1_color = obj_border1_color[idx_border1_color].value;
var select01_font2_color   = obj_font2_color[idx_font2_color].value;
var select01_bg2_color     = obj_bg2_color[idx_bg2_color].value;
var select01_border2       = obj_border2[idx_border2].value;
var select01_border2_color = obj_border2_color[idx_border2_color].value;
if(select01_font1_color=="none"){alert("文字色（①）を設定してください");return false;}
if(select01_font2_color=="none"){alert("文字色（②）を設定してください");return false;}
document.menu1_yoko_form3.menu1_Result2.value  = "/* ----------------------------------------------------- */\n";
document.menu1_yoko_form3.menu1_Result2.value += "/* ■ 横ナビゲーション　　　　　　 　　　　　　　　　　　*/\n";
document.menu1_yoko_form3.menu1_Result2.value += "/* ----------------------------------------------------- */\n";
document.menu1_yoko_form3.menu1_Result2.value += "#Topnavi{\n";
document.menu1_yoko_form3.menu1_Result2.value += "padding:" +  select01_padding1 + " " + select01_padding2 + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "margin:0;\n";
document.menu1_yoko_form3.menu1_Result2.value += "font-size:" + select01_font_size + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "font-weight:" + select01_font_weight + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "width:1000px;\n";
document.menu1_yoko_form3.menu1_Result2.value += "text-align:center;\n";
document.menu1_yoko_form3.menu1_Result2.value += "}\n";
document.menu1_yoko_form3.menu1_Result2.value += "#Navilist li{\n";
document.menu1_yoko_form3.menu1_Result2.value += "margin:0;\n";
document.menu1_yoko_form3.menu1_Result2.value += "display: inline;\n";
document.menu1_yoko_form3.menu1_Result2.value += "list-style-type: none;\n";
document.menu1_yoko_form3.menu1_Result2.value += "float: left;\n";
if(select01_fixed=="fixed"){document.menu1_yoko_form3.menu1_Result2.value += "width:" + select01_length + ";\n";}
document.menu1_yoko_form3.menu1_Result2.value += "}\n";
document.menu1_yoko_form3.menu1_Result2.value += "#Navilist li a{\n";
document.menu1_yoko_form3.menu1_Result2.value += "color:" + select01_font1_color + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "background-color:" + select01_bg1_color + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "border:" + select01_border1 + " solid " + select01_border1_color + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "margin:0;\n";
document.menu1_yoko_form3.menu1_Result2.value += "display: inline;\n";
document.menu1_yoko_form3.menu1_Result2.value += "list-style-type: none;\n";
document.menu1_yoko_form3.menu1_Result2.value += "padding:" +  select01_padding1 + " " + select01_padding2 + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "background-image:url(背景画像のＵＲＬ①);\n";
document.menu1_yoko_form3.menu1_Result2.value += "background-repeat:repeat;\n";
if(select01_fixed=="fixed"){document.menu1_yoko_form3.menu1_Result2.value += "display: block;\n";}
document.menu1_yoko_form3.menu1_Result2.value += "}\n";
document.menu1_yoko_form3.menu1_Result2.value += "#Navilist li a:hover {\n";
document.menu1_yoko_form3.menu1_Result2.value += "color:" + select01_font2_color + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "background-color:" + select01_bg2_color + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "border:" + select01_border2 + " solid " + select01_border2_color + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "margin:0;\n";
document.menu1_yoko_form3.menu1_Result2.value += "padding:" +  select01_padding1 + " " + select01_padding2 + ";\n";
document.menu1_yoko_form3.menu1_Result2.value += "background-image:url(背景画像のＵＲＬ②);\n";
document.menu1_yoko_form3.menu1_Result2.value += "background-repeat:repeat;\n";
if(select01_fixed=="fixed"){document.menu1_yoko_form3.menu1_Result2.value += "display: block;\n";}
document.menu1_yoko_form3.menu1_Result2.value += "}\n";
document.menu1_yoko_form3.menu1_Result2.value += "#Topnavi{\n";
document.menu1_yoko_form3.menu1_Result2.value += "position: absolute;\n";
document.menu1_yoko_form3.menu1_Result2.value += "top:" + document.menu1_yoko_form.menu1_top.value + "px; /* 上からの距離を指定して下さい */\n";
document.menu1_yoko_form3.menu1_Result2.value += "left:" + document.menu1_yoko_form.menu1_left.value + "px; /* 通常　0px でＯＫです */\n";
document.menu1_yoko_form3.menu1_Result2.value += "z-index: 100;\n";
document.menu1_yoko_form3.menu1_Result2.value += "}\n";
document.menu1_yoko_form3.menu1_Result2.value += ".skinHeaderArea{ /* ヘッダーとコンテンツの隙間(調整して下さい) */\n";
document.menu1_yoko_form3.menu1_Result2.value += "margin-bottom:50px;\n";
document.menu1_yoko_form3.menu1_Result2.value += "}\n";
document.menu1_yoko_form3.menu1_Result2.value += ".skinFrame2{ /* ウインドウの拡大・縮小で位置を変化させない */\n";
document.menu1_yoko_form3.menu1_Result2.value += "position:relative;\n";
document.menu1_yoko_form3.menu1_Result2.value += "width:980px;/* コンテンツ幅を設定(調整して下さい) */\n";
document.menu1_yoko_form3.menu1_Result2.value += "margin:auto;/* 自動中央寄せ */\n";
document.menu1_yoko_form3.menu1_Result2.value += "}\n";

}


function menu1_verify(){
if(document.menu1_yoko_form.menu1_top.value.match(/[^0-9]+/)){alert("数字で入力して下さい(上からの位置)");return false;}
if(document.menu1_yoko_form.menu1_left.value.match(/[^0-9]+/)){alert("数字で入力して下さい(左からの位置)");return false;}
var Ameba_ID = document.menu1_yoko_form.menu1_amebaid.value;
if(Ameba_ID==""){alert("アメーバＩＤを入れて下さい");}
var verify_data  = '<div id="Topnavi"><ul id="Navilist">';
var obj_menu01_link=document.getElementById("menu1_menu01_link");
var obj_menu02_link=document.getElementById("menu1_menu02_link");
var obj_menu03_link=document.getElementById("menu1_menu03_link");
var obj_menu04_link=document.getElementById("menu1_menu04_link");
var obj_menu05_link=document.getElementById("menu1_menu05_link");
var obj_menu06_link=document.getElementById("menu1_menu06_link");
var obj_menu07_link=document.getElementById("menu1_menu07_link");
var obj_menu08_link=document.getElementById("menu1_menu08_link");
var idx_menu01_link      = obj_menu01_link.selectedIndex;
var idx_menu02_link      = obj_menu02_link.selectedIndex;
var idx_menu03_link      = obj_menu03_link.selectedIndex;
var idx_menu04_link      = obj_menu04_link.selectedIndex;
var idx_menu05_link      = obj_menu05_link.selectedIndex;
var idx_menu06_link      = obj_menu06_link.selectedIndex;
var idx_menu07_link      = obj_menu07_link.selectedIndex;
var idx_menu08_link      = obj_menu08_link.selectedIndex;
var select01_menu01_link = obj_menu01_link[idx_menu01_link].value;
var select01_menu02_link = obj_menu02_link[idx_menu02_link].value;
var select01_menu03_link = obj_menu03_link[idx_menu03_link].value;
var select01_menu04_link = obj_menu04_link[idx_menu04_link].value;
var select01_menu05_link = obj_menu05_link[idx_menu05_link].value;
var select01_menu06_link = obj_menu06_link[idx_menu06_link].value;
var select01_menu07_link = obj_menu07_link[idx_menu07_link].value;
var select01_menu08_link = obj_menu08_link[idx_menu08_link].value;
if(select01_menu01_link=="else"){select01_menu01_link = document.menu1_yoko_form.menu1_menu01_linkin.value;}else{select01_menu01_link = select01_menu01_link + Ameba_ID;}
if(select01_menu02_link=="else"){select01_menu02_link = document.menu1_yoko_form.menu1_menu02_linkin.value;}else{select01_menu02_link = select01_menu02_link + Ameba_ID;}
if(select01_menu03_link=="else"){select01_menu03_link = document.menu1_yoko_form.menu1_menu03_linkin.value;}else{select01_menu03_link = select01_menu03_link + Ameba_ID;}
if(select01_menu04_link=="else"){select01_menu04_link = document.menu1_yoko_form.menu1_menu04_linkin.value;}else{select01_menu04_link = select01_menu04_link + Ameba_ID;}
if(select01_menu05_link=="else"){select01_menu05_link = document.menu1_yoko_form.menu1_menu05_linkin.value;}else{select01_menu05_link = select01_menu05_link + Ameba_ID;}
if(select01_menu06_link=="else"){select01_menu06_link = document.menu1_yoko_form.menu1_menu06_linkin.value;}else{select01_menu06_link = select01_menu06_link + Ameba_ID;}
if(select01_menu07_link=="else"){select01_menu07_link = document.menu1_yoko_form.menu1_menu07_linkin.value;}else{select01_menu07_link = select01_menu07_link + Ameba_ID;}
if(select01_menu08_link=="else"){select01_menu08_link = document.menu1_yoko_form.menu1_menu08_linkin.value;}else{select01_menu08_link = select01_menu08_link + Ameba_ID;}
if(document.menu1_yoko_form.menu1_midashi01.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi01.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi02.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi02.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi03.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi03.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi04.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi04.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi05.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi05.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi06.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi06.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi08.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi07.value + '</a></li>';}
if(document.menu1_yoko_form.menu1_midashi08.value != ""){verify_data  += '<li><a href="#">' + document.menu1_yoko_form.menu1_midashi08.value + '</a></li>';}
verify_data  += '</ul></div>'


var obj_font_size=document.getElementById("menu1_font-size");
var idx_font_size        = obj_font_size.selectedIndex;
var select01_font_size   = obj_font_size[idx_font_size].value;
var obj_font_weight=document.getElementById("menu1_font-weight");
var idx_font_weight      = obj_font_weight.selectedIndex;
var select01_font_weight = obj_font_weight[idx_font_weight].value;

var obj_padding1=document.getElementById("menu1_padding1");
var obj_padding2=document.getElementById("menu1_padding2");
var idx_padding1        = obj_padding1.selectedIndex;
var idx_padding2        = obj_padding2.selectedIndex;
var select01_padding1   = obj_padding1[idx_padding1].value;
var select01_padding2   = obj_padding2[idx_padding2].value;
var obj_fixed=document.getElementById("menu1_fixed");
var idx_fixed           = obj_fixed.selectedIndex;
var select01_fixed      = obj_fixed[idx_fixed].value;
var obj_length=document.getElementById("menu1_length");
var idx_length          = obj_length.selectedIndex;
var select01_length     = obj_length[idx_length].value;
var obj_font1_color=document.getElementById("menu1_font1_color");
var obj_bg1_color=document.getElementById("menu1_bg1_color");
var obj_border1=document.getElementById("menu1_border1");
var obj_border1_color=document.getElementById("menu1_border1_color");
var obj_font2_color=document.getElementById("menu1_font2_color");
var obj_bg2_color=document.getElementById("menu1_bg2_color");
var obj_border2=document.getElementById("menu1_border2");
var obj_border2_color=document.getElementById("menu1_border2_color");
var idx_font1_color    = obj_font1_color.selectedIndex;
var idx_bg1_color      = obj_bg1_color.selectedIndex;
var idx_border1        = obj_border1.selectedIndex;
var idx_border1_color  = obj_border1_color.selectedIndex;
var idx_font2_color    = obj_font2_color.selectedIndex;
var idx_bg2_color      = obj_bg2_color.selectedIndex;
var idx_border2        = obj_border2.selectedIndex;
var idx_border2_color  = obj_border2_color.selectedIndex;
var select01_font1_color   = obj_font1_color[idx_font1_color].value;
var select01_bg1_color     = obj_bg1_color[idx_bg1_color].value;
var select01_border1       = obj_border1[idx_border1].value;
var select01_border1_color = obj_border1_color[idx_border1_color].value;
var select01_font2_color   = obj_font2_color[idx_font2_color].value;
var select01_bg2_color     = obj_bg2_color[idx_bg2_color].value;
var select01_border2       = obj_border2[idx_border2].value;
var select01_border2_color = obj_border2_color[idx_border2_color].value;
if(select01_font1_color=="none"){alert("文字色（①）を設定してください");return false;}
if(select01_font2_color=="none"){alert("文字色（②）を設定してください");return false;}
$(function(){
$("#Topnavi").remove();
$("#Navilist").remove();
$('#menu1_yoko_ver').append( verify_data );
$('#Topnavi').css("padding", select01_padding1 + " " + select01_padding2);
$('#Topnavi').css("width", "1000px");
$('#Topnavi').css("font-size", select01_font_size);
$('#Topnavi').css("font-weight", select01_font_weight);
$('#Navilist li').css("margin", "0");
$('#Navilist li').css("display", "inline");
$('#Navilist li').css("float", "left");
$('#Navilist li').css("list-style-type", "none");
$('#Navilist li').css("text-align", "center");
if(select01_fixed=="fixed"){$('#Navilist li').css("width", select01_length);}
$('#Navilist li').css("padding", select01_padding1 + " " + select01_padding2);
$('#Navilist li').css("font-size", select01_font_size);
$('#Navilist li a').css("font-size", select01_font_size);
$('#Navilist li a').css("margin", "0");
$('#Navilist li a').css("display", "inline");
$('#Navilist li a').css("list-style-type", "none");
$('#Navilist li a').css("padding", select01_padding1 + " " + select01_padding2);
if(select01_fixed=="fixed"){$('#Navilist li a').css("width", select01_length);}
$('#Navilist li a').css("color", select01_font1_color );
$('#Navilist li a').css("border", select01_border1 + " solid " + select01_border1_color);
if(select01_fixed=="fixed"){$('#Navilist li a').css("display", "block");}
$('#Navilist li a').css("background-color", select01_bg1_color);
$('#Topnavi').css("position", "relative");
});

$(function(){$("#Navilist li a").hover(function(){
$(this).css("font-size", select01_font_size );
$(this).css("color", select01_font2_color );
$(this).css("border", select01_border2 + " solid " + select01_border2_color);
$(this).css("padding", select01_padding1 + " " + select01_padding2);
$(this).css("background-color", select01_bg2_color);
if(select01_fixed=="fixed"){$(this).css("display", "block");}
},function(){
$('#Navilist li a').css("font-size", select01_font_size );
$('#Navilist li a').css("color", select01_font1_color );
$('#Navilist li a').css("border", select01_border1 + " solid " + select01_border1_color);
$('#Navilist li a').css("padding", select01_padding1 + " " + select01_padding2);
$('#Navilist li a').css("background-color", select01_bg1_color);
if(select01_fixed=="fixed"){$('#Navilist li a').css("display", "block");}
});
});
}

function alert001(){alert("メッセージ");}
function alert002(){
if(window.confirm("お元気ですか？")){alert("元気でよかった");
}else{alert("元気出してね");}
}
function alert003(){
for(i = 0; i < 3; i++){
var in01=window.prompt("今年は何年？ A・・・猫年 B・・・辰年");
if(in01=="A"){alert("猫年でないよ。辰年だよ。");break;}else{
if(in01=="B"){alert("正解です");break;}else{
alert("A B どちらかを入れてください");}
}}}


function alert004(){
var in01=window.prompt("好きなものは何？(半角で入れてください) \n 1→カレーライス 2→お寿司 3→ハンバーグ");
switch (in01){
case "1":alert("私も大好きです。カレーは辛いのが好きです。");break;
case "2":alert("私も大好きです。まぐろが好きです。");break;
case "3":alert("私も大好きです。チーズハンバーグが好きです。");break;
default:alert("正しい数字を入れてね");
}}


$(function(){
sel=new Array("#hyoA","#hyoB","#hyoC","#hyoD","#hyoE");
var h_val="";
$("#hyo_sel").change(function () {
$("#hyo_sel option:selected").each(function () {
h_val=$(this).val();});
if(h_val!="none"){
for(i = 0; i < sel.length; i++){
$(sel[i]).css("display","none");}
$(h_val).css("display","table");
}}).change();
})



function amember_css_Create(){
var img_data_width   = 0;
var img_data_height  = 0;
document.amember_form2.amember_Result.value  = "ここに結果が表示されます。";
if(document.amember_form1.amember_img_url.value==""){alert("画像のＵＲＬを入れて下さい");return false;}
var URLPos1 = document.amember_form1.amember_img_url.value.indexOf("http://stat.ameba.jp/user_images/");
var URLPos2 = document.amember_form1.amember_img_url.value.indexOf("http://stat.blogskin.ameba.jp/blogskin_images/");
var URLPos3 = document.amember_form1.amember_img_url.value.indexOf("http://stat001.ameba.jp/user_images/");
if((URLPos1 != 0) && (URLPos2 != 0) && (URLPos3 != 0)){alert("画像のＵＲＬはアメーバ内のＵＲＬを入れて下さい");return false;}
var img = document.getElementById("tmp002");
img.src = document.amember_form1.amember_img_url.value;
img.onload;
document.amember_form1.amember_img_width.value   = img.width;
document.amember_form1.amember_img_height.value  = img.height;
img_data_width   = img.width;
img_data_height  = img.height;
if((img_data_width == 0) || (img_data_height == 0)){
document.amember_form2.amember_Result.value  = "ここに結果が表示されます。";
alert("画像が見つかりません");return false;}

if(document.amember_form1.amember_img_url.value==""){alert("画像のＵＲＬを入れて下さい");return false;}
document.amember_form2.amember_Result.value  = "/* ----------------------------------------------------- */ \n";
document.amember_form2.amember_Result.value += "/* ■ アメンバー限定記事画像変更　　　　　　　　　　　　 */\n";
document.amember_form2.amember_Result.value += "/* ----------------------------------------------------- */\n";
document.amember_form2.amember_Result.value += ".amemberEntryBtn img{\n";
document.amember_form2.amember_Result.value += "visibility:hidden;\n";
document.amember_form2.amember_Result.value += "}\n";
document.amember_form2.amember_Result.value += ".amemberEntryBtn a{\n";
document.amember_form2.amember_Result.value += "width:" + img.width + "px;\n";
document.amember_form2.amember_Result.value += "height:" + img.height + "px;\n";
document.amember_form2.amember_Result.value += "display: block;\n";
document.amember_form2.amember_Result.value += "overflow:hidden;\n";
document.amember_form2.amember_Result.value += "outline:none;\n";
document.amember_form2.amember_Result.value += "margin-left: auto;\n";
document.amember_form2.amember_Result.value += "margin-right: auto;\n";
document.amember_form2.amember_Result.value += "text-align: center;\n";
document.amember_form2.amember_Result.value += "background-image: url(" + document.amember_form1.amember_img_url.value + ") !important;\n";
document.amember_form2.amember_Result.value += "background-repeat:no-repeat;\n";
document.amember_form2.amember_Result.value += "background-position: center center;\n";
document.amember_form2.amember_Result.value += "}\n";
document.amember_form2.amember_Result.value += "html* .amemberEntryBtn a{/* アメ限画像　ＩＥ７対応ＣＳＳ */\n";
document.amember_form2.amember_Result.value += "background-position:left top !important;\n";
document.amember_form2.amember_Result.value += "}\n";

}

function getBrowserVersion() {
  return window.opera ? (opera.version().replace(/\d$/, "") - 0) // Opera10 shock
                      : parseFloat((/(?:IE |fox\/|ome\/|ion\/)(\d+\.\d)/.
                                   exec(navigator.userAgent) || [,0])[1]);
}
function BrawserDisp(){
var Browser01;
if(navigator.userAgent.indexOf("Opera") != -1){
Browser01 = "Opera";
}
else if(navigator.userAgent.indexOf("MSIE") != -1){
Browser01 = "Internet Explorer";
}
else if(navigator.userAgent.indexOf("Firefox") != -1){
Browser01 = "Firefox";
}
else if(navigator.userAgent.indexOf("Netscape") != -1){
Browser01 = "Netscape";
}
else if(navigator.userAgent.indexOf("Safari") != -1){
Browser01 = "Safari";
}
else{
Browser01 = "不明";
}
var Version01 = getBrowserVersion();
//if (document.documentMode >= 8) {
//var Version01 = "8"
//}
var os, ua = navigator.userAgent;
if (ua.match(/Win(dows )?NT 6\.2/)) {
	os = "Windows 8";// Windows 8 の処理
}
else if (ua.match(/Win(dows )?NT 6\.1/)) {
os = "Windows 7";// Windows 7 の処理
}
else if (ua.match(/Win(dows )?NT 6\.0/)) {
os = "Windows Vista";// Windows Vista の処理
}
else if (ua.match(/Win(dows )?NT 5\.2/)) {
os = "Windows Server 2003";// Windows Server 2003 の処理
}
else if (ua.match(/Win(dows )?(NT 5\.1|XP)/)) {
os = "Windows XP";// Windows XP の処理
}
else if (ua.match(/Win(dows)? (9x 4\.90|ME)/)) {
os = "Windows ME";// Windows ME の処理
}
else if (ua.match(/Win(dows )?(NT 5\.0|2000)/)) {
os = "Windows 2000";// Windows 2000 の処理
}
else if (ua.match(/Win(dows )?98/)) {
os = "Windows 98";// Windows 98 の処理
}
else if (ua.match(/Win(dows )?NT( 4\.0)?/)) {
os = "Windows NT";// Windows NT の処理
}
else if (ua.match(/Win(dows )?95/)) {
os = "Windows 95";// Windows 95 の処理
}
else if (ua.match(/Mac|PPC/)) {
os = "Mac OS";// Macintosh の処理
}
else if (ua.match(/Linux/)) {
os = "Linux";// Linux の処理
}
else if (ua.match(/^.*\s([A-Za-z]+BSD)/)) {
os = RegExp.$1;// BSD 系の処理
}
else if (ua.match(/SunOS/)) {
os = "Solaris";// Solaris の処理
}
else {
os = "N/A";// 上記以外 OS の処理
}
alert("あなたのＰＣのＯＳは、 "+os+" です。\nあなたの ブラウザは " + Browser01 + "　バーションは " + Version01 + " だよ");
}



function NG_tag_css_Create(){
$(document).ready(function(){
var NG_tag_in=document.NG_tag_freesp_chg.NG_tag_chg_in.value;
var NG_tag_out=NG_tag_in.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/<br>/g,"").replace(/<BR>/g,"").replace(/"/g,"&quot;");
document.NG_tag_freesp_chg.NG_tag_chg_out.value='<div style="display: none;" class="NG_tag_area">'+NG_tag_out+'</div>';
});
}


function  banner_tag_change_fn(selctor_b,selctor_e){
var banner_tag_color_ob=document.getElementById(selctor_b);
var b_index=banner_tag_color_ob.selectedIndex;
var b_select = banner_tag_color_ob[b_index].value;
var banner_tag_f=document.banner_tag;
if(b_select=="else"){
	banner_tag_f.elements[selctor_e].value="";
	banner_tag_f.elements[selctor_e].disabled=false;
}else{
	banner_tag_f.elements[selctor_e].value=banner_tag_color_ob[b_index].value;
	banner_tag_f.elements[selctor_e].disabled=true;
}
}
function  banner_tag_value(selctor_b){
var banner_tag_color_ob=document.getElementById(selctor_b);
var b_index=banner_tag_color_ob.selectedIndex;
return banner_tag_color_ob[b_index].value;
}

function banner_tag_Create(){
//　アメーバID
var ameba_id = document.banner_tag.b_t_amebaid.value;
if(ameba_id==''){alert("アメーバＩＤを入れてください");return false;}
//　バナー画像
var img_src = document.banner_tag.b_t_pic_url.value;
if(img_src==''){alert("画像のＵＲＬを入れてください");return false;}
var img = new Image();
img.src = img_src;
//　紹介タグ部分の文字色
var b_color=banner_tag_value('banner_tag_color');
if(b_color=="else"){
b_color = document.banner_tag.banner_tag_else_color.value;
}
//　紹介タグ部分の背景色
var b_bgcolor=banner_tag_value('banner_tag_bgcolor');
if(b_bgcolor=="else"){
b_bgcolor = document.banner_tag.banner_tag_else_bgcolor.value;
}
//　枠の色
var b_border_color=banner_tag_value('banner_tag_border_color');
if(b_border_color=="else"){
b_border_color = document.banner_tag.banner_tag_border_else_color.value;
}
//　枠の太さ
var b_border_weight=banner_tag_value('banner_tag_border_weight');
if(b_border_weight=="else"){
b_border_weight = document.banner_tag.banner_tag_border_else_weight.value;
}
//　枠の種類
b_border_style=banner_tag_value('banner_tag_border_style');
//　紹介タグ部分の幅
var b_width=banner_tag_value('banner_tag_width');
if(b_width=="else"){
b_width = document.banner_tag.banner_tag_else_width.value;
b_width =b_width +'px';
}
document.banner_tag.banner_tag_out.value  = '';
document.banner_tag.banner_tag_out.value  += '<div id="bannerx1w"><img src="'+ img.src +'"><br>';
document.banner_tag.banner_tag_out.value  += '<input value=\'<a href="http://ameblo.jp/'+ameba_id+'/" ';
if(document.banner_tag.b_t_target[0].checked) {
  document.banner_tag.banner_tag_out.value  += 'target="_blank">';
}else{
  document.banner_tag.banner_tag_out.value  += '>';
}
document.banner_tag.banner_tag_out.value  += '<img src="'+ img.src +'"></a>\'';
document.banner_tag.banner_tag_out.value  += ' readonly ';
if(document.banner_tag.b_t_pic_ckick_over[0].checked) {
 document.banner_tag.banner_tag_out.value += 'onclick="this.select()" ';
}else{
 document.banner_tag.banner_tag_out.value += 'onmouseover="this.select()" ';
}
document.banner_tag.banner_tag_out.value  += 'style="background-color:'+b_bgcolor+';';
document.banner_tag.banner_tag_out.value  += 'color:'+b_color+';';
document.banner_tag.banner_tag_out.value  += 'border:'+b_border_weight+' '+b_border_style+' '+b_border_color+';';
document.banner_tag.banner_tag_out.value  += 'width:'+b_width+';';
document.banner_tag.banner_tag_out.value  += '"></div>';
$("#banner_tag_view").html(document.banner_tag.banner_tag_out.value);
}



function link_tag_Create(){
//　リンク先ののＵＲＬ
var link_url = document.link_tag.l_t_url.value;
if(link_url==''){alert("リンク先のＵＲＬを入れてください");return false;}
//　画像のＵＲＬ
var link_tag_ob=document.getElementById("link_tag_pic_char");
var l_index=link_tag_ob.selectedIndex;
var l_select = link_tag_ob[l_index].value;
var link_tag_f=document.link_tag;
if(l_select=="pic"){
 var img_src = document.link_tag.l_t_pic_url.value;
 if(img_src==''){alert("画像のＵＲＬを入れてください");return false;}
}else{
 var char_src = document.link_tag.l_t_chr_url.value;
 if(char_src==''){alert("リンクしたい文字を入れてください");return false;}
}
document.link_tag.link_tag_out.value  = '';
document.link_tag.link_tag_out.value  += '<a href="'+link_url+'"';
if(document.link_tag.l_t_target[0].checked) {
  document.link_tag.link_tag_out.value  += ' target="_blank">';
}else{
  document.link_tag.link_tag_out.value  += '>';
}
if(l_select=="pic"){
 document.link_tag.link_tag_out.value  += '<img src="'+ img_src +'"></a>';
}else{
 document.link_tag.link_tag_out.value  += char_src+'</a>';
}
}

function  link_tag_pic_char_chg(){
var link_tag_ob=document.getElementById("link_tag_pic_char");
var l_index=link_tag_ob.selectedIndex;
var l_select = link_tag_ob[l_index].value;
var link_tag_f=document.link_tag;
if(l_select=="pic"){
	link_tag_f.elements["l_t_pic_url"].disabled=false;
	link_tag_f.elements["l_t_chr_url"].disabled=true;
}else{
	link_tag_f.elements["l_t_pic_url"].disabled=true;
	link_tag_f.elements["l_t_chr_url"].disabled=false;
}
}




function rotate_css3_Create(){
var rotate01_sw="0";var rotate02_sw="0";var rotate03_sw="0";var rotate04_sw="0";var rotate05_sw="0";
var r_selector_p = new RegExp(/[0-9]/);
var r_selector = document.rotate_css3.rotate_selector.value;
if(r_selector.substring(0,1).match(r_selector_p)){
alert("最初の１文字は英字(A～Z または a～z)を入れてください");return false;
}
if(r_selector==""){
alert("セレクタ名（クラス）を入れてください");return false;
}
var num_err_msg="数字で入力してください";
var r_angle01  = document.rotate_css3.rotate_angle01.value;
var r_angle02  = document.rotate_css3.rotate_angle02.value;
var r_angle03  = document.rotate_css3.rotate_angle03.value;
var r_angle04  = document.rotate_css3.rotate_angle04.value;
var r_angle05  = document.rotate_css3.rotate_angle05.value;
var r_angle1   = document.rotate_css3.rotate_angle1.value;
var r_angle2   = document.rotate_css3.rotate_angle2.value;
var r_angle3   = document.rotate_css3.rotate_angle3.value;
if(document.rotate_css3.rotate01[0].checked==true){rotate01_sw="1";}
if(document.rotate_css3.rotate01[1].checked==true){rotate02_sw="1";}
if(document.rotate_css3.rotate01[2].checked==true){rotate03_sw="1";}
if(document.rotate_css3.rotate01[3].checked==true){rotate04_sw="1";}
if(document.rotate_css3.rotate01[4].checked==true){rotate05_sw="1";}
var num_p = new RegExp(/^[-]?[0-9]+(¥.[0-9]+)?$/)
if(rotate01_sw=="1"){if(!r_angle01.match(num_p)){alert("(rotate   回転角度) "+num_err_msg);return false;}}
if(rotate02_sw=="1"){if(!r_angle02.match(num_p)){alert("(rotateX  回転角度) "+num_err_msg);return false;}}
if(rotate03_sw=="1"){if(!r_angle03.match(num_p)){alert("(rotateY  回転角度) "+num_err_msg);return false;}}
if(rotate04_sw=="1"){if(!r_angle04.match(num_p)){alert("(rotateZ  回転角度) "+num_err_msg);return false;}}
if(rotate05_sw=="1"){if(!r_angle05.match(num_p)){alert("(rotate3d 回転角度) "+num_err_msg);return false;}}
if(rotate05_sw=="1"){if(!r_angle1.match(num_p)){alert("(数値Ｘ) "+num_err_msg);return false;}}
if(rotate05_sw=="1"){if(!r_angle2.match(num_p)){alert("(数値Ｙ) "+num_err_msg);return false;}}
if(rotate05_sw=="1"){if(!r_angle3.match(num_p)){alert("(数値Ｚ) "+num_err_msg);return false;}}

var prefix_data = new Array();
prefix_data[0]='-moz-';
prefix_data[1]='-webkit-';
prefix_data[2]='-o-';
prefix_data[3]='-ms-';
prefix_data[4]='';
for(i = 0; i < prefix_data.length; i++){
$("img.rotate_css3_try_img").css("cssText",prefix_data[i]+"transform:rotate(none)").css("cssText",prefix_data[i]+"transform:rotateX(none)").css("cssText",prefix_data[i]+"transform:rotateY(none)").css("cssText",prefix_data[i]+"transform:rotateZ(none)");
$(".rotate_css3_try_text").css("cssText",prefix_data[i]+"transform:rotate(none)").css("cssText",prefix_data[i]+"transform:rotateX(none)").css("cssText",prefix_data[i]+"transform:rotateY(none)").css("cssText",prefix_data[i]+"transform:rotateZ(none)");
}
var prefix_datax="";
if(navigator.userAgent.indexOf("Opera") != -1){
prefix_datax = prefix_data[2];
}
else if(navigator.userAgent.indexOf("MSIE") != -1){
prefix_datax = prefix_data[3];
}
else if(navigator.userAgent.indexOf("Firefox") != -1){
prefix_datax = prefix_data[4];
}
else if(navigator.userAgent.indexOf("Netscape") != -1){
prefix_datax = prefix_data[0];
}
else if(navigator.userAgent.indexOf("Safari") != -1){
prefix_datax = prefix_data[1];
}
else if(navigator.userAgent.indexOf("Chrome") != -1){
prefix_datax = prefix_data[1];
}
else{
prefix_datax = prefix_data[1];
}

var transform_css="";
if(rotate01_sw=="1"){transform_css=prefix_datax+"transform:rotate("+r_angle01+"deg);";  }
if(rotate02_sw=="1"){transform_css=prefix_datax+"transform:rotateX("+r_angle02+"deg);"; }
if(rotate03_sw=="1"){transform_css=prefix_datax+"transform:rotateY("+r_angle03+"deg);"; }
if(rotate04_sw=="1"){transform_css=prefix_datax+"transform:rotateZ("+r_angle04+"deg);"; }
if(rotate05_sw=="1"){transform_css=prefix_datax+"transform:rotate3d("+r_angle1+","+r_angle2+","+r_angle3+","+r_angle05+"deg);";}
$("img.rotate_css3_try_img").css("cssText",transform_css);
$(".rotate_css3_try_text").css("cssText",transform_css);


var prefix_com = new Array();
prefix_com[0]='/* Firefox(old Ver) mozilla */';
prefix_com[1]='/* Safari and Chrome */';
prefix_com[2]='/* Opera */';
prefix_com[3]='/* IE9 IE10 */';
prefix_com[4]='/* CSS3 Firefox etc. */';

document.rotate_css3.rotate_css3_out.value ="";
document.rotate_css3.rotate_css3_out.value+="."+r_selector+"{\n";
for(i = 0; i < prefix_data.length; i++){
var transform_css="";
if(rotate01_sw=="1"){document.rotate_css3.rotate_css3_out.value+=prefix_data[i]+"transform:rotate("+r_angle01+"deg);" +prefix_com[i]+"\n"; }
if(rotate02_sw=="1"){document.rotate_css3.rotate_css3_out.value+=prefix_data[i]+"transform:rotateX("+r_angle02+"deg);"+prefix_com[i]+"\n"; }
if(rotate03_sw=="1"){document.rotate_css3.rotate_css3_out.value+=prefix_data[i]+"transform:rotateY("+r_angle03+"deg);"+prefix_com[i]+"\n"; }
if(rotate04_sw=="1"){document.rotate_css3.rotate_css3_out.value+=prefix_data[i]+"transform:rotateZ("+r_angle04+"deg);"+prefix_com[i]+"\n"; }
if(rotate05_sw=="1"){document.rotate_css3.rotate_css3_out.value+=prefix_data[i]+"transform:rotate3d("+r_angle1+","+r_angle2+","+r_angle3+","+r_angle05+"deg);"+prefix_com[i]+"\n";}
}
document.rotate_css3.rotate_css3_out.value+="}\n";
}



function column_name_chg(){
var column_w_setf=document.column_w_set;
column_w_setf.elements["colum_sub_r"].disabled  =false;
column_w_setf.elements["colum_sub_r_m"].disabled=false;
column_w_setf.elements["colum_sub_l"].disabled  =false;
column_w_setf.elements["colum_sub_l_m"].disabled=false;
var column_name_ob=document.getElementById("column_name");
var column_ix=column_name_ob.selectedIndex;
var c_select = column_name_ob[column_ix].value;
if(c_select=="columnA"){$(".column_image").attr("src","http://stat100.ameba.jp/blog/img/ucs/design/thmb_type_a.gif");}
if(c_select=="columnB"){$(".column_image").attr("src","http://stat100.ameba.jp/blog/img/ucs/design/thmb_type_b.gif");}
if(c_select=="columnC"){$(".column_image").attr("src","http://stat100.ameba.jp/blog/img/ucs/design/thmb_type_c.gif");}
if(c_select=="columnD"){$(".column_image").attr("src","http://stat100.ameba.jp/blog/img/ucs/design/thmb_type_d.gif");}
if(c_select=="columnE"){$(".column_image").attr("src","http://stat100.ameba.jp/blog/img/ucs/design/thmb_type_e.gif");}
if(c_select=="columnA"){
column_w_setf.elements["colum_sub_r"].disabled  =true;
column_w_setf.elements["colum_sub_r_m"].disabled=true;
column_w_setf.elements["colum_sub_r"].value  =0;
column_w_setf.elements["colum_sub_r_m"].value=0;
}
if(c_select=="columnB"){
column_w_setf.elements["colum_sub_l"].disabled  =true;
column_w_setf.elements["colum_sub_l_m"].disabled=true;
column_w_setf.elements["colum_sub_l"].value  =0;
column_w_setf.elements["colum_sub_l_m"].value=0;
}
}


function zeroSuppress( val ) {
return val.replace( /^0+([0-9]+)/, "$1" );
}


function colum_w_Create(){
var column_name_ob=document.getElementById("column_name");
var column_ix=column_name_ob.selectedIndex;
var c_select = column_name_ob[column_ix].value;
var num_msg =" 数字で入力してください";
var num_msg2=" ＰＲ・広告の幅は 300px以上にしてください";
var num_chk_p= new RegExp(/^[0-9]+$/);
var main_w   = document.column_w_set.colum_main.value;
var subl_w   = document.column_w_set.colum_sub_l.value;
var subl_wm  = document.column_w_set.colum_sub_l_m.value;
var subr_w   = document.column_w_set.colum_sub_r.value;
var subr_wm  = document.column_w_set.colum_sub_r_m.value;
if(!main_w.match(num_chk_p)) {alert("(記事幅)"+num_msg);return false;}
if(!subr_w.match(num_chk_p)) {alert("(サイドバー右幅)"+num_msg);return false;}
if(!subl_w.match(num_chk_p)) {alert("(サイドバー左幅)"+num_msg);return false;}
if(!subl_wm.match(num_chk_p)){alert("(サイドバー左と記事の隙間)"+num_msg);return false;}
if(!subr_wm.match(num_chk_p)){alert("(サイドバー右と記事の隙間)"+num_msg);return false;}

main_w=zeroSuppress(main_w);
subl_w=zeroSuppress(subl_w);
subl_wm=zeroSuppress(subl_wm);
subr_w=zeroSuppress(subr_w);
subr_wm=zeroSuppress(subr_wm);

main_w=parseInt(main_w);
subl_w=parseInt(subl_w);
subl_wm=parseInt(subl_wm);
subr_w=parseInt(subr_w);
subr_wm=parseInt(subr_wm);

if((c_select=="columnA")&&(subl_w<300))              {alert("(サイドバー左幅)"+num_msg2+' '+c_select);return false;}
if((c_select=="columnB")&&(subr_w<300))              {alert("(サイドバー右幅)"+num_msg2+' '+c_select);return false;}
if((c_select=="columnC")&&(subr_w<300))              {alert("(サイドバー右幅)"+num_msg2+' '+c_select);return false;}
if((c_select=="columnD")&&(subl_w<300))              {alert("(サイドバー左幅)"+num_msg2+' '+c_select);return false;}
if((c_select=="columnE")&&(subr_w<300))              {alert("(サイドバー右幅)"+num_msg2+' '+c_select);return false;}
var layoutA=0;
var contents=0;
if(c_select=="columnA"){layoutA=main_w+subl_w+subl_wm;contents=layoutA;}
if(c_select=="columnB"){layoutA=main_w+subr_w+subr_wm;contents=layoutA;}
if(c_select=="columnC"){layoutA=main_w+subr_w+subr_wm;contents=layoutA+subl_w+subl_wm;}
if(c_select=="columnD"){layoutA=main_w+subl_w+subl_wm;contents=layoutA+subr_w+subr_wm;}
if(c_select=="columnE"){layoutA=main_w+subr_w+subr_wm+subl_w+subl_wm;contents=layoutA;}
document.column_w_set.colum_contents.value=contents;
document.column_w_set.colum_layoutA.value =layoutA;
document.column_w_set.colum_w_out.value ="/* --------------------------------------------*/\n"
document.column_w_set.colum_w_out.value+="/* 幅の調整（ "+ c_select + " )"+"　　　　　　　　　　　　*/\n"
document.column_w_set.colum_w_out.value+="/* --------------------------------------------*/\n"
document.column_w_set.colum_w_out.value+=".skinHeaderArea,.skinContentsArea{/* ヘッダー コンテンツ全体 */\n";
document.column_w_set.colum_w_out.value+="width:"+contents+"px;/* 幅 */\n";
document.column_w_set.colum_w_out.value+="}\n";
document.column_w_set.colum_w_out.value+="."+c_select+" .layoutContentsA{/* 記事＋サイドバー(広告) */\n";
document.column_w_set.colum_w_out.value+="width:"+layoutA+"px !important;/* 幅 */\n";
document.column_w_set.colum_w_out.value+="}\n";
document.column_w_set.colum_w_out.value+="."+c_select+" .skinMainArea{/* 記事 */\n";
document.column_w_set.colum_w_out.value+="width:"+main_w+"px !important;/* 幅 */\n";
document.column_w_set.colum_w_out.value+="}\n";
document.column_w_set.colum_w_out.value+="."+c_select+" .skinSubA{/* サイドバー(広告) */\n";
if((c_select=="columnA")||(c_select=="columnD")){
document.column_w_set.colum_w_out.value+="width:"+subl_w+"px;/* 幅 */\n";
}else{
document.column_w_set.colum_w_out.value+="width:"+subr_w+"px;/* 幅 */\n";
}
document.column_w_set.colum_w_out.value+="}\n";
if((c_select=="columnC")||(c_select=="columnE")){
document.column_w_set.colum_w_out.value+="."+c_select+" .skinSubB{/* サイドバー(左) */\n";
document.column_w_set.colum_w_out.value+="width:"+subl_w+"px;/* 幅 */\n";
//document.column_w_set.colum_w_out.value+="margin-left:"+subl_wm+"px;/* 左側の記事との隙間 */\n";
document.column_w_set.colum_w_out.value+="}\n";
}
if(c_select=="columnD"){
document.column_w_set.colum_w_out.value+="."+c_select+" .skinSubB{/* サイドバー(右) */\n";
document.column_w_set.colum_w_out.value+="width:"+subr_w+"px;/* 幅 */\n";
document.column_w_set.colum_w_out.value+="}\n";
}
}



function rgb_change_Create1(){
var red1    = document.rgb_change.rgb_red1.value;
var green1  = document.rgb_change.rgb_green1.value;
var blue1   = document.rgb_change.rgb_blue1.value;
var in_msg1 =" 数字で入力してください";
var in_msg2 =" 0～255の範囲で入力してください";
var num_chk_p= new RegExp(/^[0-9]+$/);
if(!red1.match(num_chk_p))   {alert("(赤)"+in_msg1);return false;}
if(!green1.match(num_chk_p)) {alert("(緑)"+in_msg1);return false;}
if(!blue1.match(num_chk_p))  {alert("(青)"+in_msg1);return false;}
red1  =zeroSuppress(red1);
green1=zeroSuppress(green1);
blue1 =zeroSuppress(blue1);
red1  =parseInt(red1);
green1=parseInt(green1);
blue1 =parseInt(blue1);
if((red1<0)  ||(red1>255))   {alert("(赤)"+in_msg2);return false;}
if((green1<0)||(green1>255)) {alert("(緑)"+in_msg2);return false;}
if((blue1<0) ||(blue1>255))  {alert("(青)"+in_msg2);return false;}
var red2=red1.toString(16);
var green2=green1.toString(16);
var blue2=blue1.toString(16);
if(red2.length==1)  {red2="0"+red2}
if(green2.length==1){green2="0"+green2}
if(blue2.length==1) {blue2="0"+blue2}
document.rgb_change.rgb_color1.value=red2+green2+blue2;
$(".rgb_change_s1").css("background-color","#"+red2+green2+blue2);
}

function rgb_change_Create2(){
var color2    = document.rgb_change2.rgb_color2.value;
if(!color2.match(/^([a-f\d])([a-f\d])([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i)) {
alert("色コードが正しくありません");return false;
}
var red1  =color2.substring(0,2);
var green1=color2.substring(2,4);
var blue1 =color2.substring(4,6);
var red2  =parseInt(red1,16);
var green2=parseInt(green1,16);
var blue2 =parseInt(blue1,16);
document.rgb_change2.rgb_red2.value=red2;
document.rgb_change2.rgb_green2.value=green2;
document.rgb_change2.rgb_blue2.value=blue2;
$(".rgb_change_s2").css("background-color","#"+color2);
}


function radius_chg(radius_x,radius_x_else){
var radius_ob=document.getElementById(radius_x);
var radius_ix=radius_ob.selectedIndex;
var radius_data = radius_ob[radius_ix].value;
var radius_form=document.radius_CSS3;
var radius_oc=document.getElementById(radius_x);
var radius_ix=radius_oc.selectedIndex;
if(radius_data=="else"){
	radius_form.elements[radius_x_else].value="";
	radius_form.elements[radius_x_else].disabled=false;
}else{
	radius_form.elements[radius_x_else].value=radius_oc[radius_ix].value;
	radius_form.elements[radius_x_else].disabled=true;
}
}

function radius_Create(){ // 角丸ＣＳＳ３作成
// class と id のセレクタ名をチェックして内容を求める。
var radius_selector_p = new RegExp(/[0-9]/);
var radius_s_class = document.radius_CSS3.radius_class_name.value;
var radius_s_id    = document.radius_CSS3.radius_id_name.value;
var class_id_name  = "";
if(document.radius_CSS3.radius_class_id[0].checked==true){
	if(radius_s_class==""){
		alert("セレクタ名（class）を入れてください");return false;
	}
	if(radius_s_class.substring(0,1).match(radius_selector_p)){
		alert("最初の１文字は英字(A～Z または a～z)を入れてください\nclass selector name");return false;
	}
	class_id_name='.'+radius_s_class;
}
if(document.radius_CSS3.radius_class_id[1].checked==true){
	if(radius_s_id==""){
		alert("セレクタ名（id）を入れてください");return false;
	}
	if(radius_s_id.substring(0,1).match(radius_selector_p)){
		alert("最初の１文字は英字(A～Z または a～z)を入れてください\nid selector name");return false;
	}
	class_id_name='#'+radius_s_id;
}
// 角丸の左上・右上・右下・左下 （水平・垂直）のチェックと内容を求める
var radius_tl_x = document.radius_CSS3.radius_tl_x_else.value;
var radius_tl_y = document.radius_CSS3.radius_tl_y_else.value;
var radius_tr_x = document.radius_CSS3.radius_tr_x_else.value;
var radius_tr_y = document.radius_CSS3.radius_tr_y_else.value;
var radius_bl_x = document.radius_CSS3.radius_bl_x_else.value;
var radius_bl_y = document.radius_CSS3.radius_bl_y_else.value;
var radius_br_x = document.radius_CSS3.radius_br_x_else.value;
var radius_br_y = document.radius_CSS3.radius_br_y_else.value;
// ＣＳＳ作成
document.radius_CSS3.radius_out.value ="/* --------------------------------------------*/\n";
document.radius_CSS3.radius_out.value+="/* ＣＳＳ３　角丸　　　　　　　　　　　　　　　*/\n";
document.radius_CSS3.radius_out.value+="/* --------------------------------------------*/\n";
document.radius_CSS3.radius_out.value+=class_id_name+"{\n";
$('.radius_CSS3_test').css("cssText","border-radius:0px;");
// チェックボックスチェック
var radius_CSS3_form=document.radius_CSS3;
var css_text_data="height:200px;display:block;width:100%;background-color:#ff0000;";
var check_sw="0";
if(radius_CSS3_form.elements["radius_tl"].checked==true){
	document.radius_CSS3.radius_out.value+='border-top-left-radius:'+radius_tl_x+'px '+radius_tl_y+'px;\n';
	css_text_data+='border-top-left-radius:'+radius_tl_x+'px '+radius_tl_y+'px;';
	check_sw="1";
}
if(radius_CSS3_form.elements["radius_tr"].checked==true){
	document.radius_CSS3.radius_out.value+='border-top-right-radius:'+radius_tr_x+'px '+radius_tr_y+'px;\n';
	css_text_data+='border-top-right-radius:'+radius_tr_x+'px '+radius_tr_y+'px;';
	check_sw="1";
}
if(radius_CSS3_form.elements["radius_bl"].checked==true){
	document.radius_CSS3.radius_out.value+='border-bottom-right-radius:'+radius_br_x+'px '+radius_br_y+'px;\n';
	css_text_data+='border-bottom-right-radius:'+radius_br_x+'px '+radius_br_y+'px;';
	check_sw="1";
}
if(radius_CSS3_form.elements["radius_br"].checked==true){
	document.radius_CSS3.radius_out.value+='border-bottom-left-radius:'+radius_bl_x+'px '+radius_bl_y+'px;\n';
	css_text_data+='border-bottom-left-radius:'+radius_bl_x+'px '+radius_bl_y+'px;';
	check_sw="1";
}
if(check_sw=="0"){
	document.radius_CSS3.radius_out.value+="border-radius:0px;\n";
}
document.radius_CSS3.radius_out.value+="}\n";
$('.radius_CSS3_test').css("cssText",css_text_data);
}





function chg_scroll_color(id_name, style_names){
if(id_name=="reset"){
var ver_bar=document.getElementById('scroll_bar_ver');
ver_bar.style.scrollbarBaseColor       = "transparent";
ver_bar.style.scrollbarFaceColor       = "transparent";
ver_bar.style.scrollbarTrackColor      = "transparent";
ver_bar.style.scrollbarArrowColor      = "transparent";
ver_bar.style.scrollbarShadowColor     = "transparent";
ver_bar.style.scrollbarHighlightColor  = "transparent";
ver_bar.style.scrollbarDarkShadowColor = "transparent";
ver_bar.style.scrollbar3dLightColor    = "transparent";
document.scroll_bar_form2.scroll_bar_Result.value = "ここに結果が表示されます。";
}else{
var Idobj10=document.getElementById(id_name);
var index010=Idobj10.selectedIndex;
select10x = Idobj10[index010].value;



var ver_bar=document.getElementById('scroll_bar_ver');
if(ver_bar!=null){
if((style_names=="base")       && (select10x!="none")) {ver_bar.style.scrollbarBaseColor       = select10x;}
if((style_names=="face")       && (select10x!="none")) {ver_bar.style.scrollbarFaceColor       = select10x;}
if((style_names=="track")      && (select10x!="none")) {ver_bar.style.scrollbarTrackColor      = select10x;}
if((style_names=="arrow")      && (select10x!="none")) {ver_bar.style.scrollbarArrowColor      = select10x;}
if((style_names=="shadow")     && (select10x!="none")) {ver_bar.style.scrollbarShadowColor     = select10x;}
if((style_names=="high")       && (select10x!="none")) {ver_bar.style.scrollbarHighlightColor  = select10x;}
if((style_names=="darkshadow") && (select10x!="none")) {ver_bar.style.scrollbarDarkShadowColor = select10x;}
if((style_names=="3dlight")    && (select10x!="none")) {ver_bar.style.scrollbar3dLightColor    = select10x;}

if((style_names=="base")       && (select10x=="none")) {ver_bar.style.scrollbarBaseColor       = "transparent";}
if((style_names=="face")       && (select10x=="none")) {ver_bar.style.scrollbarFaceColor       = "transparent";}
if((style_names=="track")      && (select10x=="none")) {ver_bar.style.scrollbarTrackColor      = "transparent";}
if((style_names=="arrow")      && (select10x=="none")) {ver_bar.style.scrollbarArrowColor      = "transparent";}
if((style_names=="shadow")     && (select10x=="none")) {ver_bar.style.scrollbarShadowColor     = "transparent";}
if((style_names=="high")       && (select10x=="none")) {ver_bar.style.scrollbarHighlightColor  = "transparent";}
if((style_names=="darkshadow") && (select10x=="none")) {ver_bar.style.scrollbarDarkShadowColor = "transparent";}
if((style_names=="3dlight")    && (select10x=="none")) {ver_bar.style.scrollbar3dLightColor    = "transparent";}

if((style_names=="base")       && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_base_color_view"].value       = select10x;}
if((style_names=="face")       && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_face_color_view"].value       = select10x;}
if((style_names=="track")      && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_track_color_view"].value      = select10x;}
if((style_names=="arrow")      && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_arrow_color_view"].value      = select10x;}
if((style_names=="shadow")     && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_shadow_color_view"].value     = select10x;}
if((style_names=="high")       && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_highlight_color_view"].value  = select10x;}
if((style_names=="darkshadow") && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_darkshadow_color_view"].value = select10x;}
if((style_names=="3dlight")    && (select10x!="none")) {document.scroll_bar_form1.elements["scroll_3dlight_color_view"].value    = select10x;}
if((style_names=="base")       && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_base_color_view"].value       = "";}
if((style_names=="face")       && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_face_color_view"].value       = "";}
if((style_names=="track")      && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_track_color_view"].value      = "";}
if((style_names=="arrow")      && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_arrow_color_view"].value      = "";}
if((style_names=="shadow")     && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_shadow_color_view"].value     = "";}
if((style_names=="high")       && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_highlight_color_view"].value  = "";}
if((style_names=="darkshadow") && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_darkshadow_color_view"].value = "";}
if((style_names=="3dlight")    && (select10x=="none")) {document.scroll_bar_form1.elements["scroll_3dlight_color_view"].value    = "";}
}
}
}

function scroll_bar_css_Create(){
var overflow_sw = "off";
var none_select_sw = "off";
document.scroll_bar_form2.scroll_bar_Result.value = "";
var obj_base=document.getElementById("scroll_base_color");
var obj_track=document.getElementById("scroll_track_color");
var obj_face=document.getElementById("scroll_face_color");
var obj_shadow=document.getElementById("scroll_shadow_color");
var obj_darkshadow=document.getElementById("scroll_darkshadow_color");
var obj_highlight=document.getElementById("scroll_highlight_color");
var obj_3dlight=document.getElementById("scroll_3dlight_color");
var obj_arrow=document.getElementById("scroll_arrow_color");
var obj_set_basho=document.getElementById("scroll_bar_set_basho");
var idx_base       = obj_base.selectedIndex;
var idx_track      = obj_track.selectedIndex;
var idx_face       = obj_face.selectedIndex;
var idx_shadow     = obj_shadow.selectedIndex;
var idx_darkshadow = obj_darkshadow.selectedIndex;
var idx_highlight  = obj_highlight.selectedIndex;
var idx_3dlight    = obj_3dlight.selectedIndex;
var idx_arrow      = obj_arrow .selectedIndex;
var idx_set_basho  = obj_set_basho.selectedIndex;
var select01_base       = obj_base       [idx_base       ].value;
var select01_track      = obj_track      [idx_track      ].value;
var select01_face       = obj_face       [idx_face       ].value;
var select01_shadow     = obj_shadow     [idx_shadow     ].value;
var select01_darkshadow = obj_darkshadow [idx_darkshadow ].value;
var select01_highlight  = obj_highlight  [idx_highlight  ].value;
var select01_3dlight    = obj_3dlight    [idx_3dlight    ].value;
var select01_arrow      = obj_arrow      [idx_arrow      ].value;
var select01_set_basho  = obj_set_basho  [idx_set_basho  ].value;
if(select01_set_basho!="CSS"){document.scroll_bar_form2.scroll_bar_Result.value += '<style type="text/css">';
	if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "";
	}else{
		document.scroll_bar_form2.scroll_bar_Result.value += "";
	}
}
document.scroll_bar_form2.scroll_bar_Result.value += "html,body{";
if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
if((select01_base=="none")      && (select01_track=="none")     && (select01_face=="none")    && (select01_shadow=="none")  &&
  (select01_darkshadow=="none") && (select01_highlight=="none") && (select01_3dlight=="none") && (select01_arrow=="none")){
  none_select_sw = "on";}
if(select01_base!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-base-color:"             + select01_base +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_track!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-track-color:"          + select01_track +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_face!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-face-color:"             + select01_face +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_shadow!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-shadow-color:"         + select01_shadow +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_darkshadow!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-darkshadow-color:" + select01_darkshadow +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_highlight!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-highlight-color:"   + select01_highlight +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_3dlight!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-3dlight-color:"       + select01_3dlight +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
if(select01_arrow!="none"){document.scroll_bar_form2.scroll_bar_Result.value += "scrollbar-arrow-color:"           + select01_arrow +";";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n";}
}
document.scroll_bar_form2.scroll_bar_Result.value += "}";
if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "";}

if(select01_set_basho!="CSS"){document.scroll_bar_form2.scroll_bar_Result.value += "";
 if(select01_set_basho!="freespace"){document.scroll_bar_form2.scroll_bar_Result.value += "\n</style>\n";
 }else{
  document.scroll_bar_form2.scroll_bar_Result.value += "</style>";
}
}
}


function contrast_r(contrast_raid){// 対比計算　ラジオボタンチェック
var contrast_form=document.contrast_cal;
if(contrast_raid==1){
	contrast_form.elements["contrast_b1"].disabled=true;
	contrast_form.elements["contrast_w2"].disabled=false;
	contrast_form.elements["contrast_h2"].disabled=true;
	$("#contrast_w1").css("border","1px solid #ff0000");
	$("#contrast_h1").css("border","1px solid #ff0000");
	$("#contrast_w2").css("border","1px solid #ff0000");
	$("#contrast_h2").css("border","1px solid #0000ff");
	$("#contrast_b1").css("border","1px solid #00ff00");
}
if(contrast_raid==2){
	contrast_form.elements["contrast_b1"].disabled=true;
	contrast_form.elements["contrast_w2"].disabled=true;
	contrast_form.elements["contrast_h2"].disabled=false;
	$("#contrast_w1").css("border","1px solid #ff0000");
	$("#contrast_h1").css("border","1px solid #ff0000");
	$("#contrast_w2").css("border","1px solid #0000ff");
	$("#contrast_h2").css("border","1px solid #ff0000");
	$("#contrast_b1").css("border","1px solid #00ff00");
}
if(contrast_raid==3){
	contrast_form.elements["contrast_b1"].disabled=false;
	contrast_form.elements["contrast_w2"].disabled=true;
	contrast_form.elements["contrast_h2"].disabled=true;
	$("#contrast_w1").css("border","1px solid #ff0000");
	$("#contrast_h1").css("border","1px solid #ff0000");
	$("#contrast_w2").css("border","1px solid #0000ff");
	$("#contrast_h2").css("border","1px solid #0000ff");
	$("#contrast_b1").css("border","1px solid #ff0000");
}
}

function contrast_cal_Create1(){// 対比計算
var base_w   = document.contrast_cal.contrast_w1.value;
var base_h   = document.contrast_cal.contrast_h1.value;
var change_w = document.contrast_cal.contrast_w2.value;
var change_h = document.contrast_cal.contrast_h2.value;
var change_b = document.contrast_cal.contrast_b1.value;
var in_msg1 =" 数字で入力してください";
var num_chk_p= new RegExp(/^[0-9]+$/);
if(!base_w.match(num_chk_p))   {alert("(変更前の横)"+in_msg1);return false;}
if(!base_h.match(num_chk_p))   {alert("(変更前の縦)"+in_msg1);return false;}
if(document.contrast_cal.contrast_sel[0].checked==true) {
	if(!change_w.match(num_chk_p))   {alert("(変更後の横)"+in_msg1);return false;}
		document.contrast_cal.contrast_h2.value=Math.round(base_h*change_w/base_w*10)/10;
		document.contrast_cal.contrast_b1.value=Math.round(change_w/base_w*100)/100;
}else{
	if(document.contrast_cal.contrast_sel[1].checked==true) {
		if(!change_h.match(num_chk_p))   {alert("(変更後の縦)"+in_msg1);return false;}
			document.contrast_cal.contrast_w2.value=Math.round(base_w*change_h/base_h*10)/10;
			document.contrast_cal.contrast_b1.value=Math.round(change_h/base_h*100)/100;
	}else{
//		if(!change_b.match(num_chk_p))   {alert("(倍率)"+in_msg1);return false;}
			document.contrast_cal.contrast_w2.value=Math.round(base_w*change_b*10)/10;
			document.contrast_cal.contrast_h2.value=Math.round(base_h*change_b*10)/10;
	}
}
}




function box_shadow_css3_Create(){
var b_selector_p = new RegExp(/[0-9]/);
var b_selector = document.box_shadow_css3.box_shadow_selector.value;
if(b_selector.substring(0,1).match(b_selector_p)){
alert("セレクタ名の最初の１文字は英字(A～Z または a～z)を入れてください");return false;
}
if(b_selector==""){
alert("セレクタ名（クラス）を入れてください");return false;
}
var bs_sw0="0";var bs_sw1="0";var bs_sw2="0";var bs_sw3="0";var bs_sw4="0";var bs_sw5="0";
var num_err_msg="数字で入力してください";
// 幅・高さ
var num_p = new RegExp(/^[-]?[0-9]+(¥.[0-9]+)?$/);
var bs_width  = document.box_shadow_css3.box_shadow_width.value;
var bs_height = document.box_shadow_css3.box_shadow_height.value;
if(!bs_width.match(num_p)){alert("幅を"+num_err_msg);return false;}
if(!bs_height.match(num_p)){alert("高さを"+num_err_msg);return false;}
// 水平・垂直・ぼかし・全体
var bs_01     = document.box_shadow_css3.box_shadow_01.value;
var bs_02     = document.box_shadow_css3.box_shadow_02.value;
var bs_03     = document.box_shadow_css3.box_shadow_03.value;
var bs_04     = document.box_shadow_css3.box_shadow_04.value;
var bs_11     = document.box_shadow_css3.box_shadow_11.value;
var bs_12     = document.box_shadow_css3.box_shadow_12.value;
var bs_13     = document.box_shadow_css3.box_shadow_13.value;
var bs_14     = document.box_shadow_css3.box_shadow_14.value;
var bs_21     = document.box_shadow_css3.box_shadow_21.value;
var bs_22     = document.box_shadow_css3.box_shadow_22.value;
var bs_23     = document.box_shadow_css3.box_shadow_23.value;
var bs_24     = document.box_shadow_css3.box_shadow_24.value;
var bs_31     = document.box_shadow_css3.box_shadow_31.value;
var bs_32     = document.box_shadow_css3.box_shadow_32.value;
var bs_33     = document.box_shadow_css3.box_shadow_33.value;
var bs_34     = document.box_shadow_css3.box_shadow_34.value;
var bs_41     = document.box_shadow_css3.box_shadow_41.value;
var bs_42     = document.box_shadow_css3.box_shadow_42.value;
var bs_43     = document.box_shadow_css3.box_shadow_43.value;
var bs_44     = document.box_shadow_css3.box_shadow_44.value;
var bs_51     = document.box_shadow_css3.box_shadow_51.value;
var bs_52     = document.box_shadow_css3.box_shadow_52.value;
var bs_53     = document.box_shadow_css3.box_shadow_53.value;
var bs_54     = document.box_shadow_css3.box_shadow_54.value;
// チェックボックス
var css3_bs_f=document.box_shadow_css3;
if(css3_bs_f.elements["box_shadow_00"].checked==true){bs_sw0="1";}
if(css3_bs_f.elements["box_shadow_10"].checked==true){bs_sw1="1";}
if(css3_bs_f.elements["box_shadow_20"].checked==true){bs_sw2="1";}
if(css3_bs_f.elements["box_shadow_30"].checked==true){bs_sw3="1";}
if(css3_bs_f.elements["box_shadow_40"].checked==true){bs_sw4="1";}
if(css3_bs_f.elements["box_shadow_50"].checked==true){bs_sw5="1";}
// 水平・垂直・ぼかし・全体のチェック
if(bs_sw0=="1"){if(!bs_01.match(num_p)){alert("(水平1)   "+num_err_msg);return false;}}
if(bs_sw0=="1"){if(!bs_02.match(num_p)){alert("(垂直1)   "+num_err_msg);return false;}}
if(bs_sw0=="1"){if(!bs_03.match(num_p)){alert("(ぼかし1) "+num_err_msg);return false;}}
if(bs_sw0=="1"){if(!bs_04.match(num_p)){alert("(全体1)   "+num_err_msg);return false;}}
if(bs_sw1=="1"){if(!bs_11.match(num_p)){alert("(水平2)   "+num_err_msg);return false;}}
if(bs_sw1=="1"){if(!bs_12.match(num_p)){alert("(垂直2)   "+num_err_msg);return false;}}
if(bs_sw1=="1"){if(!bs_13.match(num_p)){alert("(ぼかし2) "+num_err_msg);return false;}}
if(bs_sw1=="1"){if(!bs_14.match(num_p)){alert("(全体2)   "+num_err_msg);return false;}}
if(bs_sw2=="1"){if(!bs_21.match(num_p)){alert("(水平3)   "+num_err_msg);return false;}}
if(bs_sw2=="1"){if(!bs_22.match(num_p)){alert("(垂直3)   "+num_err_msg);return false;}}
if(bs_sw2=="1"){if(!bs_23.match(num_p)){alert("(ぼかし3) "+num_err_msg);return false;}}
if(bs_sw2=="1"){if(!bs_24.match(num_p)){alert("(全体3)   "+num_err_msg);return false;}}
if(bs_sw3=="1"){if(!bs_31.match(num_p)){alert("(水平4)   "+num_err_msg);return false;}}
if(bs_sw3=="1"){if(!bs_32.match(num_p)){alert("(垂直4)   "+num_err_msg);return false;}}
if(bs_sw3=="1"){if(!bs_33.match(num_p)){alert("(ぼかし4) "+num_err_msg);return false;}}
if(bs_sw3=="1"){if(!bs_34.match(num_p)){alert("(全体4)   "+num_err_msg);return false;}}
if(bs_sw4=="1"){if(!bs_41.match(num_p)){alert("(水平5)   "+num_err_msg);return false;}}
if(bs_sw4=="1"){if(!bs_42.match(num_p)){alert("(垂直5)   "+num_err_msg);return false;}}
if(bs_sw4=="1"){if(!bs_43.match(num_p)){alert("(ぼかし5) "+num_err_msg);return false;}}
if(bs_sw4=="1"){if(!bs_44.match(num_p)){alert("(全体5)   "+num_err_msg);return false;}}
if(bs_sw5=="1"){if(!bs_51.match(num_p)){alert("(水平6)   "+num_err_msg);return false;}}
if(bs_sw5=="1"){if(!bs_52.match(num_p)){alert("(垂直6)   "+num_err_msg);return false;}}
if(bs_sw5=="1"){if(!bs_53.match(num_p)){alert("(ぼかし6) "+num_err_msg);return false;}}
if(bs_sw5=="1"){if(!bs_54.match(num_p)){alert("(全体6)   "+num_err_msg);return false;}}
// 色コード
var obj_color05= document.getElementById("box_shadow_05");
var idx05      = obj_color05.selectedIndex;
var bs_color05 = obj_color05[idx05].value;
if(bs_color05=="else"){bs_color05 = document.box_shadow_css3.box_shadow_05_color_view.value;}
var obj_color15= document.getElementById("box_shadow_15");
var idx15      = obj_color15.selectedIndex;
var bs_color15 = obj_color15[idx15].value;
if(bs_color15=="else"){bs_color15 = document.box_shadow_css3.box_shadow_15_color_view.value;}
var obj_color25= document.getElementById("box_shadow_25");
var idx25      = obj_color25.selectedIndex;
var bs_color25 = obj_color25[idx25].value;
if(bs_color25=="else"){bs_color25 = document.box_shadow_css3.box_shadow205_color_view.value;}
var obj_color35= document.getElementById("box_shadow_35");
var idx35      = obj_color35.selectedIndex;
var bs_color35 = obj_color35[idx35].value;
if(bs_color35=="else"){bs_color35 = document.box_shadow_css3.box_shadow_35_color_view.value;}
var obj_color45= document.getElementById("box_shadow_45");
var idx45      = obj_color45.selectedIndex;
var bs_color45 = obj_color45[idx45].value;
if(bs_color45=="else"){bs_color45 = document.box_shadow_css3.box_shadow_45_color_view.value;}
var obj_color55= document.getElementById("box_shadow_55");
var idx55      = obj_color55.selectedIndex;
var bs_color55 = obj_color55[idx55].value;
if(bs_color55=="else"){bs_color55 = document.box_shadow_css3.box_shadow_55_color_view.value;}
// 色チェック
if((bs_sw0=="1") && (bs_color05=="none")){alert("色コード 1 を指定してください");return false;}
if((bs_sw1=="1") && (bs_color15=="none")){alert("色コード 2 を指定してください");return false;}
if((bs_sw2=="1") && (bs_color25=="none")){alert("色コード 3 を指定してください");return false;}
if((bs_sw3=="1") && (bs_color35=="none")){alert("色コード 4 を指定してください");return false;}
if((bs_sw4=="1") && (bs_color45=="none")){alert("色コード 5 を指定してください");return false;}
if((bs_sw5=="1") && (bs_color55=="none")){alert("色コード 6 を指定してください");return false;}
// 外側・内側
var bs_oi_06_ob  = document.getElementById("box_shadow_06");
var bs_oi_index06= bs_oi_06_ob.selectedIndex;
var bs_oi_06     = bs_oi_06_ob[bs_oi_index06].value;
var bs_oi_16_ob  = document.getElementById("box_shadow_16");
var bs_oi_index16= bs_oi_16_ob.selectedIndex;
var bs_oi_16     = bs_oi_16_ob[bs_oi_index16].value;
var bs_oi_26_ob  = document.getElementById("box_shadow_26");
var bs_oi_index26= bs_oi_26_ob.selectedIndex;
var bs_oi_26     = bs_oi_26_ob[bs_oi_index26].value;
var bs_oi_36_ob  = document.getElementById("box_shadow_36");
var bs_oi_index36= bs_oi_36_ob.selectedIndex;
var bs_oi_36     = bs_oi_36_ob[bs_oi_index36].value;
var bs_oi_46_ob  = document.getElementById("box_shadow_46");
var bs_oi_index46= bs_oi_46_ob.selectedIndex;
var bs_oi_46     = bs_oi_46_ob[bs_oi_index46].value;
var bs_oi_56_ob  = document.getElementById("box_shadow_56");
var bs_oi_index56= bs_oi_56_ob.selectedIndex;
var bs_oi_56     = bs_oi_56_ob[bs_oi_index56].value;
// 外側・内側変換
if(bs_oi_06=="none"){bs_oi_06="";}
if(bs_oi_16=="none"){bs_oi_16="";}
if(bs_oi_26=="none"){bs_oi_26="";}
if(bs_oi_36=="none"){bs_oi_36="";}
if(bs_oi_46=="none"){bs_oi_46="";}
if(bs_oi_56=="none"){bs_oi_56="";}
// ＣＳＳ作成
var css_text_data="margin:auto;background-color:#ffffff;margin-top:100px;";
document.box_shadow_css3.box_shadow_css3_out.value ="/* --------------------------------------------*/\n";
document.box_shadow_css3.box_shadow_css3_out.value+="/* ＣＳＳ３　角丸　　　　　　　　　　　　　　　*/\n";
document.box_shadow_css3.box_shadow_css3_out.value+="/* --------------------------------------------*/\n";
document.box_shadow_css3.box_shadow_css3_out.value+="."+b_selector+"{\n";
document.box_shadow_css3.box_shadow_css3_out.value+="width:"+bs_width+"px;\n";
css_text_data+="width:"+bs_width+"px;";
document.box_shadow_css3.box_shadow_css3_out.value+="height:"+bs_height+"px;\n";
css_text_data+="height:"+bs_height+"px;";
document.box_shadow_css3.box_shadow_css3_out.value+="display:block;\n";
css_text_data+="display:block;";
// チェックボックス　順序チェック
if(bs_sw0=="0"){alert("チェックボックスは最初から順番に入れてください");return false;}
if((bs_sw0=="1") && (bs_sw2=="1") && (bs_sw1=="0")){alert("チェックボックスは最初から順番に入れてください");return false;}
if((bs_sw0=="1") && (bs_sw3=="1") && (bs_sw2=="0")){alert("チェックボックスは最初から順番に入れてください");return false;}
if((bs_sw0=="1") && (bs_sw4=="1") && (bs_sw3=="0")){alert("チェックボックスは最初から順番に入れてください");return false;}
if((bs_sw0=="1") && (bs_sw5=="1") && (bs_sw4=="0")){alert("チェックボックスは最初から順番に入れてください");return false;}
//
var bs_box_name="box-shadow:";
if(bs_sw0=="1"){
 document.box_shadow_css3.box_shadow_css3_out.value+= bs_box_name+bs_01+"px "+bs_02+"px "+bs_03+"px "+bs_04+"px "+bs_color05+" "+bs_oi_06;
 css_text_data+=bs_box_name+bs_01+"px "+bs_02+"px "+bs_03+"px "+bs_04+"px "+bs_color05+" "+bs_oi_06;
 if((bs_sw1=="0") && (bs_sw2=="0") && (bs_sw3=="0") && (bs_sw4=="0") && (bs_sw5=="0")){
  document.box_shadow_css3.box_shadow_css3_out.value+=";\n";
  css_text_data+=";";
 }else{
  document.box_shadow_css3.box_shadow_css3_out.value+=",\n";
  css_text_data+=",";
 }
}
if(bs_sw1=="1"){
 if(bs_sw0=="1"){bs_box_name="";}
 document.box_shadow_css3.box_shadow_css3_out.value+= bs_box_name+bs_11+"px "+bs_12+"px "+bs_13+"px "+bs_14+"px "+bs_color15+" "+bs_oi_16;
 css_text_data+=bs_box_name+bs_11+"px "+bs_12+"px "+bs_13+"px "+bs_14+"px "+bs_color15+" "+bs_oi_16;
 if((bs_sw2=="0") && (bs_sw3=="0") && (bs_sw4=="0") && (bs_sw5=="0")){
  document.box_shadow_css3.box_shadow_css3_out.value+=";\n";
  css_text_data+=";";
 }else{
  document.box_shadow_css3.box_shadow_css3_out.value+=",\n";
  css_text_data+=",";
 }
}
if(bs_sw2=="1"){
 if(bs_sw1=="1"){bs_box_name="";}
 document.box_shadow_css3.box_shadow_css3_out.value+= bs_box_name+bs_21+"px "+bs_22+"px "+bs_23+"px "+bs_24+"px "+bs_color25+" "+bs_oi_26;
 css_text_data+=bs_box_name+bs_21+"px "+bs_22+"px "+bs_23+"px "+bs_24+"px "+bs_color25+" "+bs_oi_26;
 if((bs_sw3=="0") && (bs_sw4=="0") && (bs_sw5=="0")){
  document.box_shadow_css3.box_shadow_css3_out.value+=";\n";
  css_text_data+=";";
 }else{
  document.box_shadow_css3.box_shadow_css3_out.value+=",\n";
  css_text_data+=",";
 }
}
if(bs_sw3=="1"){
 if(bs_sw2=="1"){bs_box_name="";}
 document.box_shadow_css3.box_shadow_css3_out.value+= bs_box_name+bs_31+"px "+bs_32+"px "+bs_33+"px "+bs_34+"px "+bs_color35+" "+bs_oi_36;
 css_text_data+=bs_box_name+bs_31+"px "+bs_32+"px "+bs_33+"px "+bs_34+"px "+bs_color35+" "+bs_oi_36;
 if((bs_sw4=="0") && (bs_sw5=="0")){
  document.box_shadow_css3.box_shadow_css3_out.value+=";\n";
  css_text_data+=";";
 }else{
  document.box_shadow_css3.box_shadow_css3_out.value+=",\n";
  css_text_data+=",";
 }
}
if(bs_sw4=="1"){
 if(bs_sw3=="1"){bs_box_name="";}
 document.box_shadow_css3.box_shadow_css3_out.value+= bs_box_name+bs_41+"px "+bs_42+"px "+bs_43+"px "+bs_44+"px "+bs_color45+" "+bs_oi_46;
 css_text_data+=bs_box_name+bs_41+"px "+bs_42+"px "+bs_43+"px "+bs_44+"px "+bs_color45+" "+bs_oi_46;
 if((bs_sw5=="0")){
  document.box_shadow_css3.box_shadow_css3_out.value+=";\n";
  css_text_data+=";";
 }else{
  document.box_shadow_css3.box_shadow_css3_out.value+=",\n";
  css_text_data+=",";
 }
}
if(bs_sw5=="1"){
 if(bs_sw4=="1"){bs_box_name="";}
 document.box_shadow_css3.box_shadow_css3_out.value+= bs_box_name+bs_51+"px "+bs_52+"px "+bs_53+"px "+bs_54+"px "+bs_color55+" "+bs_oi_56+";\n";
  css_text_data+= bs_box_name+bs_51+"px "+bs_52+"px "+bs_53+"px "+bs_54+"px "+bs_color55+" "+bs_oi_56;
}
document.box_shadow_css3.box_shadow_css3_out.value+="}\n";

$('.box_shadow_css3_try_text').css("cssText",css_text_data);
}

function menulinkchg(chgname, chgelse){
var frm=document.menu1_yoko_form;
var chgobj=document.getElementById(chgname);
var chgobjix=chgobj.selectedIndex;
var selectchg=chgobj[chgobjix].value;
if(selectchg=="else"){
 frm.elements[chgelse].disabled=false;
}else{
 frm.elements[chgelse].disabled=true;
}
}

function box_shadow_chg_color(chgname, chgelse){
var frm=document.box_shadow_css3;
var chgobj=document.getElementById(chgname);
var chgobjix=chgobj.selectedIndex;
var selectchg=chgobj[chgobjix].value;
if(selectchg=="else"){
 frm.elements[chgelse].disabled=false;
}else{
 frm.elements[chgelse].disabled=true;
}
}





